dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
803fb7
From 805365980feaec626e80c6514b46a6e4de319b77 Mon Sep 17 00:00:00 2001
803fb7
From: Evgeny Vereshchagin <evvers@ya.ru>
803fb7
Date: Fri, 29 Apr 2016 09:40:23 +0200
803fb7
Subject: [PATCH] core: fix memory leak on set-default, enable, disable etc
803fb7
803fb7
Cherry-picked from: 24f412ca4150b490648ab8de45c6eda5bd697fd8
803fb7
Related: #1331667
803fb7
---
803fb7
 src/core/dbus-manager.c | 1 +
803fb7
 1 file changed, 1 insertion(+)
803fb7
803fb7
diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c
803fb7
index faa124d92..1a5525e50 100644
803fb7
--- a/src/core/dbus-manager.c
803fb7
+++ b/src/core/dbus-manager.c
803fb7
@@ -1621,6 +1621,7 @@ static int reply_unit_file_changes_and_free(
803fb7
         if (r < 0)
803fb7
                 goto fail;
803fb7
 
803fb7
+        unit_file_changes_free(changes, n_changes);
803fb7
         return sd_bus_send(bus, reply, NULL);
803fb7
 
803fb7
 fail: