diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-09-11 21:14:53 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2014-09-11 21:22:45 +0200 |
commit | 807d0cca2b0daf4cd725298c1b5e062b1126f15b (patch) | |
tree | d166bbba8dcf7b49a06371be3a8bfa3b5b71b3cf /src/core | |
parent | aa44499da15a8fa7026463555a7a27e55e4e24a8 (diff) |
manager: use correct cleanup function
Close the dir instead of attempt to free it.
Introduced in 874310b7b68c4c0d36ff07397db30a959bb7dae5
Found with coverity. Fixes: CID#996368
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 9abdf475cf..095111e8c6 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -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); |