core: fix double free
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user