Skip to content

Commit

Permalink
Fix memory leak in gconf_value_set_from_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
spiiroin committed Feb 19, 2014
1 parent 213fb78 commit a8b4e7e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin-gconf.c
Expand Up @@ -799,6 +799,7 @@ static void gconf_value_set_from_string(GConfValue *self, const char *data)
break;

case GCONF_VALUE_STRING:
free(self->data.s);
self->data.s = strdup(data);
break;

Expand Down

0 comments on commit a8b4e7e

Please sign in to comment.