summaryrefslogtreecommitdiff
path: root/src/analyze/analyze.c
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-13 12:29:43 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-13 12:38:39 +0200
commit0ee9613d98cbe1f36ffc98c6bfa51dd2b798fc6d (patch)
treec67ac6ab5258b7a609c5d36cac9945dbe66838b3 /src/analyze/analyze.c
parentb9289d4c6e13ec5fb67bfce69c826d93b004da6a (diff)
analyze: fix mem leak
Found with Coverity. Fixes: CID#1237756
Diffstat (limited to 'src/analyze/analyze.c')
-rw-r--r--src/analyze/analyze.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index 1281d6b9ea..82f5cf3c57 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -848,7 +848,8 @@ static int list_dependencies(sd_bus *bus, const char *name) {
char ts[FORMAT_TIMESPAN_MAX];
struct unit_times *times;
int r;
- const char *path, *id;
+ const char *id;
+ _cleanup_free_ char *path = NULL;
_cleanup_bus_message_unref_ sd_bus_message *reply = NULL;
_cleanup_bus_error_free_ sd_bus_error error = SD_BUS_ERROR_NULL;
struct boot_times *boot;