valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0257-service-don-t-free-status_text-twice.patch

9fc0f6
From 3b6a01f5fc0a4770d9c55a1c7fb1addc231f3021 Mon Sep 17 00:00:00 2001
9fc0f6
From: Michal Sekletar <msekleta@redhat.com>
9fc0f6
Date: Mon, 18 Aug 2014 16:12:45 +0200
9fc0f6
Subject: [PATCH] service: don't free status_text twice
9fc0f6
9fc0f6
Related: #1106457
9fc0f6
---
9fc0f6
 src/core/service.c | 3 ---
9fc0f6
 1 file changed, 3 deletions(-)
9fc0f6
9fc0f6
diff --git a/src/core/service.c b/src/core/service.c
9fc0f6
index a6d046c..4366e1b 100644
9fc0f6
--- a/src/core/service.c
9fc0f6
+++ b/src/core/service.c
9fc0f6
@@ -3519,9 +3519,6 @@ static void service_notify_message(Unit *u, pid_t pid, char **tags) {
9fc0f6
 
9fc0f6
                         log_debug_unit(u->id,
9fc0f6
                                        "%s: got %s", u->id, e);
9fc0f6
-
9fc0f6
-                        free(s->status_text);
9fc0f6
-                        s->status_text = t;
9fc0f6
                 } else
9fc0f6
                         t = NULL;
9fc0f6