|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From 807d0cca2b0daf4cd725298c1b5e062b1126f15b Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
From: Thomas Hindoe Paaboel Andersen <phomes@gmail.com>
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Date: Thu, 11 Sep 2014 21:14:53 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Subject: [PATCH] manager: use correct cleanup function
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Close the dir instead of attempt to free it.
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Introduced in 874310b7b68c4c0d36ff07397db30a959bb7dae5
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
Found with coverity. Fixes: CID#996368
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
src/core/manager.c | 2 +-
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
diff --git a/src/core/manager.c b/src/core/manager.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
index 9abdf475cf..095111e8c6 100644
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
--- a/src/core/manager.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+++ b/src/core/manager.c
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
@@ -896,7 +896,7 @@ static int manager_coldplug(Manager *m) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
static void manager_build_unit_path_cache(Manager *m) {
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
char **i;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
- _cleanup_free_ DIR *d = NULL;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
+ _cleanup_closedir_ DIR *d = NULL;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
int r;
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
|
|
Zbigniew Jędrzejewski-Szmek |
62fe94 |
assert(m);
|