free the path after done with it

This commit is contained in:
Dana Jansens 2010-03-24 21:50:10 -04:00
parent 4e70343b3e
commit 159a3cb3b1

View file

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