core: fix double free

This commit is contained in:
Lennart Poettering
2013-01-14 21:24:57 +01:00
parent fbeefb45ac
commit 83dd76170d
+2 -2
View 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;
}