glib2/glib-compile-resources-Fix-a-minor-leak.patch

30 lines
718 B
Diff
Raw Normal View History

2019-09-30 10:40:42 -04:00
From 7321f240f914fa07f58c8789e219045d7282beae Mon Sep 17 00:00:00 2001
From: Philip Withnall <withnall@endlessm.com>
Date: Fri, 22 Feb 2019 14:47:46 +0000
Subject: [PATCH 623/682] glib-compile-resources: Fix a minor leak
Spotted by oss-fuzz using asan.
oss-fuzz#13271
Signed-off-by: Philip Withnall <withnall@endlessm.com>
---
gio/glib-compile-resources.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gio/glib-compile-resources.c b/gio/glib-compile-resources.c
index f04ea488b..399c567d2 100644
--- a/gio/glib-compile-resources.c
+++ b/gio/glib-compile-resources.c
@@ -999,6 +999,7 @@ main (int argc, char **argv)
}
+ g_free (base);
c_name = g_string_free (s, FALSE);
}
}
--
2.19.1