Fix one small leak in error case.
authorColin Walters <walters@verbum.org>
Thu, 21 Aug 2008 13:26:53 +0000 (13:26 +0000)
committerColin Walters <walters@src.gnome.org>
Thu, 21 Aug 2008 13:26:53 +0000 (13:26 +0000)
2008-08-21  Colin Walters  <walters@verbum.org>

* girepository/girparser.c (g_irepository_require):
Fix one small leak in error case.

svn path=/trunk/; revision=434

ChangeLog
girepository/girepository.c

index ab185d9bea59965feb7913460c6742ca9d4f406c..ba635130e787a50d128239ec35812987d29aaf9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-21  Colin Walters  <walters@verbum.org>
+
+       * girepository/girparser.c (g_irepository_require):
+       Fix one small leak in error case.
+
 2008-08-21  Johan Dahlin  <johan@gnome.org>
 
        * gir/Makefile.am:
index 9cacac66271abcbf117dec92e3ff04a66da7fd13..3898c4f8a86698029d0cfbf03671b0ff98786b79 100644 (file)
@@ -552,6 +552,7 @@ g_irepository_require (GIRepository  *repository,
 
   if (typelib == NULL)
     {
+      g_free (full_path);
       g_set_error (error, G_IREPOSITORY_ERROR,
                   G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND,
                   "Typelib file for namespace '%s' was not found in search"