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

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