chiark / gitweb /
core: fix double free
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Jan 2013 22:39:23 +0000 (23:39 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Jan 2013 20:24:57 +0000 (21:24 +0100)
src/core/load-dropin.c

index d53e77f..52ebfea 100644 (file)
@@ -168,7 +168,8 @@ int unit_load_dropin(Unit *u) {
         }
 
         if (!strv_isempty(strv)) {
-                _cleanup_strv_free_ char **files = NULL, **f;
+                _cleanup_strv_free_ char **files = NULL;
+                char **f;
 
                 r = conf_files_list_strv(&files, ".conf", (const char**) strv);
                 if (r < 0) {
@@ -183,6 +184,5 @@ int unit_load_dropin(Unit *u) {
                 }
         }
 
-
         return 0;
 }