manager: use correct cleanup function

Close the dir instead of attempt to free it.

Introduced in 874310b7b6

Found with coverity. Fixes: CID#996368
This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-09-11 21:22:45 +02:00
parent aa44499da1
commit 807d0cca2b
+1 -1
View File
@@ -896,7 +896,7 @@ static 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);