summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-23 01:43:28 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-23 01:45:34 +0200
commit8ea913b2eaadbd92e069ea6b71cc5f5df409decf (patch)
tree17801331900df94b4cf05fa232d755fac7f3929a /src/systemctl.c
parent0fe9972f3c2e20b649e0e7da0e61945253622128 (diff)
coverity: fix a couple of bugs found by coverity
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/systemctl.c b/src/systemctl.c
index 7caeb6dd91..e85a2fd44c 100644
--- a/src/systemctl.c
+++ b/src/systemctl.c
@@ -608,6 +608,7 @@ static int list_unit_files(DBusConnection *bus, char **args) {
r = unit_file_get_list(arg_scope, arg_root, h);
if (r < 0) {
+ unit_file_list_free(h);
log_error("Failed to get unit file list: %s", strerror(-r));
return r;
}