mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
Fix a double-free bug that was causing preference corruption and crashes.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user