[babl] babl: fix minor leak reported in bug #790924



commit 29d0dfb8b71f5b541b3dfad3ac6d16d86f6cc334
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Feb 7 19:53:48 2018 +0100

    babl: fix minor leak reported in bug #790924

 babl/babl-format.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/babl/babl-format.c b/babl/babl-format.c
index 1db5f02..bc5ef6b 100644
--- a/babl/babl-format.c
+++ b/babl/babl-format.c
@@ -737,6 +737,8 @@ babl_format_with_space (const char *name, const Babl *space)
     sprintf (new_name, "%s-%s", name, babl_get_name ((Babl*)space));
 
     ret = babl_db_exist_by_name (db, new_name);
+
+    babl_free (new_name);
     if (ret)
       return ret;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]