anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0312-core-fix-memory-leak-on-set-default-enable-disable-e.patch

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