free the path after done with it
authorDana Jansens <danakj@orodu.net>
Thu, 25 Mar 2010 01:50:10 +0000 (21:50 -0400)
committerDana Jansens <danakj@orodu.net>
Thu, 25 Mar 2010 22:11:13 +0000 (18:11 -0400)
obt/ddfile.c

index b4b5d29..e32dff3 100644 (file)
@@ -364,6 +364,7 @@ ObtDDFile* obt_ddfile_new_from_file(const gchar *name, GSList *paths)
             parse.lineno = 1;
             if (!parse_file(dd, f, &parse)) f = NULL;
         }
+        g_free(path);
     }
     if (!f) {
         obt_ddfile_unref(dd);