[gjs] gjs-unit: One more memory leak



commit 023bd7ca9c35cde6df27bc7701afb5cb40df39de
Author: Colin Walters <walters verbum org>
Date:   Fri Jun 17 12:36:49 2011 -0400

    gjs-unit: One more memory leak

 test/gjs-unit.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/test/gjs-unit.c b/test/gjs-unit.c
index a44822b..a222d9d 100644
--- a/test/gjs-unit.c
+++ b/test/gjs-unit.c
@@ -231,6 +231,7 @@ main(int argc, char **argv)
     g_setenv("BUILDDIR", top_builddir, FALSE);
     g_free(top_builddir);
     g_setenv("XDG_DATA_HOME", data_home, FALSE);
+    g_free(data_home);
     g_setenv("GJS_PATH", path->str, FALSE);
     g_string_free(path, TRUE);
     /* The tests are known to fail in the presence of the JIT;



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