Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix possible memory leak when setting the network config.
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Oct 29, 2013
1 parent 2ce029a commit f187e5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/usb_moded-config.c
Expand Up @@ -380,6 +380,7 @@ int set_network_setting(const char *config, const char *setting)
Just a precaution. */
g_key_file_free(settingsfile);
ret = g_file_set_contents(FS_MOUNT_CONFIG_FILE, keyfile, -1, NULL);
free(keyfile);
}
else
{
Expand Down

0 comments on commit f187e5c

Please sign in to comment.