summaryrefslogtreecommitdiff
path: root/x11-misc/dunst-1.0.0/fix_memory_leak_2.patch
blob: 3b7983c489440114fab4c4b4e13ef31536178afd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9e03b5258fb2e8afe95f3bf32e911dbedb63e765 Mon Sep 17 00:00:00 2001
From: Giuliano Schneider <gs93@gmx.net>
Date: Wed, 5 Mar 2014 13:31:01 +0100
Subject: [PATCH] fix memory leak in string_to_argv

---
 utils.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/utils.c b/utils.c
index d0bbe75..1f0cce2 100644
--- a/utils.c
+++ b/utils.c
@@ -83,6 +83,8 @@ char **string_to_argv(const char *s)
         argv = realloc (argv, sizeof (char*) * (n_spaces+1));
         argv[n_spaces] = NULL;
 
+        free(str);
+
         return argv;
 }
 
-- 
1.9.1