[glib] gio: Fix a GError memory leak in GDesktopAppInfo
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: Fix a GError memory leak in GDesktopAppInfo
- Date: Tue, 15 Mar 2016 18:03:30 +0000 (UTC)
commit 27660b178e7efd1b54b0d86b2e3ebd993d7781b1
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Mar 15 18:03:00 2016 +0000
gio: Fix a GError memory leak in GDesktopAppInfo
Spotted by Coverity (CID: #1352961).
gio/gdesktopappinfo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index cbfe556..ac9c7eb 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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]