summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-11 23:39:23 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-14 21:24:57 +0100
commit83dd76170d425ea149b74254083b2ce8add18dd8 (patch)
tree5969a2568791512f197b0e0d500c1b985693770a /src
parentfbeefb45ac1a257a0c5af975ad26d68ed6c39fda (diff)
core: fix double free
Diffstat (limited to 'src')
-rw-r--r--src/core/load-dropin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/load-dropin.c b/src/core/load-dropin.c
index d53e77f706..52ebfea6dc 100644
--- a/src/core/load-dropin.c
+++ b/src/core/load-dropin.c
@@ -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;
}