1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

Fix a double-free bug that was causing preference corruption and crashes.

This commit is contained in:
Josh Elsasser 2006-05-07 20:35:50 +00:00
parent 0a77d36380
commit f80ab0832f

View file

@ -432,11 +432,11 @@ writefile_traverse(gpointer key, gpointer value, gpointer data) {
*ptr = (*ptr) + 2;
bkey->type = TYPE_STR;
bkey->val.s.s = key;
bkey->val.s.s = g_strdup(key);
bkey->val.s.i = strlen(key);
bval->type = TYPE_STR;
bval->val.s.s = value;
bval->val.s.s = g_strdup(value);
bval->val.s.i = strlen(value);
return FALSE;