anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone
a4b143
From 32eda9ada3dade4c9f6a8a176ee326ccdd61fda8 Mon Sep 17 00:00:00 2001
a4b143
From: Lennart Poettering <lennart@poettering.net>
a4b143
Date: Tue, 1 Oct 2013 00:06:48 +0200
a4b143
Subject: [PATCH] main: don't free fds array twice
a4b143
a4b143
---
a4b143
 src/core/main.c | 1 +
a4b143
 1 file changed, 1 insertion(+)
a4b143
a4b143
diff --git a/src/core/main.c b/src/core/main.c
a4b143
index 72bd542..662d16d 100644
a4b143
--- a/src/core/main.c
a4b143
+++ b/src/core/main.c
a4b143
@@ -1567,6 +1567,7 @@ int main(int argc, char *argv[]) {
a4b143
         /* This will close all file descriptors that were opened, but
a4b143
          * not claimed by any unit. */
a4b143
         fdset_free(fds);
a4b143
+        fds = NULL;
a4b143
 
a4b143
         if (serialization) {
a4b143
                 fclose(serialization);