[gimp] app: don't leak "buffer" in gimp_interpreter_db_add_binfmt_misc()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't leak "buffer" in gimp_interpreter_db_add_binfmt_misc()
- Date: Mon, 6 Oct 2014 18:37:00 +0000 (UTC)
commit 2aec36a899882b9b882e9da41a22b00581113936
Author: Michael Natterer <mitch gimp org>
Date: Mon Oct 6 20:34:56 2014 +0200
app: don't leak "buffer" in gimp_interpreter_db_add_binfmt_misc()
app/plug-in/gimpinterpreterdb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/plug-in/gimpinterpreterdb.c b/app/plug-in/gimpinterpreterdb.c
index 6858244..6c74e0b 100644
--- a/app/plug-in/gimpinterpreterdb.c
+++ b/app/plug-in/gimpinterpreterdb.c
@@ -327,6 +327,8 @@ gimp_interpreter_db_add_binfmt_misc (GimpInterpreterDB *db,
tokens = g_strsplit (buffer + 1, del, -1);
+ g_free (buffer);
+
name = tokens[0];
type = tokens[1];
program = tokens[5];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]