summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2016-03-15 18:03:00 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2016-03-15 18:03:00 +0000
commit27660b178e7efd1b54b0d86b2e3ebd993d7781b1 (patch)
treefbba2359a6b76af27b75b4cea00d40101fa7025d
parentd8a7d5f168a8ea652e8e56ae9e157a66f7181923 (diff)
downloadglib-27660b178e7efd1b54b0d86b2e3ebd993d7781b1.tar.gz
gio: Fix a GError memory leak in GDesktopAppInfo
Spotted by Coverity (CID: #1352961).
-rw-r--r--gio/gdesktopappinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index cbfe556ad..ac9c7eb61 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -3419,6 +3419,7 @@ run_update_command (char *command,
* chance of debugging it.
*/
g_warning ("%s", error->message);
+ g_error_free (error);
}
g_free (argv[1]);