1
1
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:
Lennart Poettering 2013-01-11 23:39:23 +01:00
parent fbeefb45ac
commit 83dd76170d

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;
}