summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-11 21:14:53 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-10-26 18:23:44 -0400
commit8653aa4acb7fd541dc46c36700db57527d0eb0b7 (patch)
tree26b43a26589e8d31aa93ead245c9f7722c232603
parent2e5e58bc8430a5856c9612276b8b1c4147ef0d8e (diff)
manager: use correct cleanup function
Close the dir instead of attempt to free it. Introduced in 874310b7b68c4c0d36ff07397db30a959bb7dae5 Found with coverity. Fixes: CID#996368 (cherry picked from commit 807d0cca2b0daf4cd725298c1b5e062b1126f15b)
-rw-r--r--src/core/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index e75550bb4..720537d11 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -816,7 +816,7 @@ int manager_coldplug(Manager *m) {
static void manager_build_unit_path_cache(Manager *m) {
char **i;
- _cleanup_free_ DIR *d = NULL;
+ _cleanup_closedir_ DIR *d = NULL;
int r;
assert(m);