diff options
author | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-10-03 11:43:49 +0100 |
---|---|---|
committer | Philip Withnall <philip.withnall@collabora.co.uk> | 2015-10-03 11:43:49 +0100 |
commit | c1c001e300debcea9ba6630c1a87f56036840c52 (patch) | |
tree | c708e3c4963982ff5b3aa0a3b87ca9d6480d1b2c | |
parent | 4f6dc3023205e9480bc4bb738bff06bd02d29567 (diff) | |
download | glib-c1c001e300debcea9ba6630c1a87f56036840c52.tar.gz |
gresource-tool: Fix minor memory leak when listing resources
Coverity CID: 1325353
-rw-r--r-- | gio/gresource-tool.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gio/gresource-tool.c b/gio/gresource-tool.c index cc4e78b9f..984db37b9 100644 --- a/gio/gresource-tool.c +++ b/gio/gresource-tool.c @@ -91,7 +91,10 @@ list_resource (GResource *resource, len = MIN (strlen (child), strlen (prefix)); if (strncmp (child, prefix, len) != 0) - continue; + { + g_free (child); + continue; + } if (g_resource_get_info (resource, child, 0, &size, &flags, NULL)) { |