mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-28 17:47:05 +03:00
core: fix double free
This commit is contained in:
parent
fbeefb45ac
commit
83dd76170d
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user