Commit 00df38d1 authored by Christophe Fergeau's avatar Christophe Fergeau Committed by Martin Szulecki

Plugging memory leak in write_unicode

parent 5e44b6bf
......@@ -761,6 +761,7 @@ static void write_unicode(GByteArray * bplist, gunichar2 * val, uint64_t size)
for (i = 0; i < size; i++)
byte_convert(buff + i * sizeof(gunichar2), sizeof(gunichar2));
write_raw_data(bplist, BPLIST_UNICODE, buff, size);
free(buff);
}
static void write_array(GByteArray * bplist, GNode * node, GHashTable * ref_table, uint8_t dict_param_size)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment