]> Dogcows Code - chaz/openbox/blobdiff - obt/ddfile.c
free the path after done with it
[chaz/openbox] / obt / ddfile.c
index 15e705d66d39523630e7aee229fd05b10879b997..e32dff3ee4623fb7bacfdc715341705cc29eb91f 100644 (file)
@@ -94,9 +94,9 @@ static void parse_error(const gchar *m, const ObtDDParse *const parse,
                         gboolean *error)
 {
     if (!parse->filename)
-        g_warning("%s at line %lu of input\n", m, parse->lineno);
+        g_warning("%s at line %lu of input", m, parse->lineno);
     else
-        g_warning("%s at line %lu of file %s\n",
+        g_warning("%s at line %lu of file %s",
                   m, parse->lineno, parse->filename);
     if (error) *error = TRUE;
 }
@@ -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);
This page took 0.023034 seconds and 4 git commands to generate.