summaryrefslogtreecommitdiff
path: root/x11-misc/dunst-1.0.0/fix_memory_leak_1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/dunst-1.0.0/fix_memory_leak_1.patch')
-rw-r--r--x11-misc/dunst-1.0.0/fix_memory_leak_1.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/x11-misc/dunst-1.0.0/fix_memory_leak_1.patch b/x11-misc/dunst-1.0.0/fix_memory_leak_1.patch
new file mode 100644
index 0000000..fad57b9
--- /dev/null
+++ b/x11-misc/dunst-1.0.0/fix_memory_leak_1.patch
@@ -0,0 +1,25 @@
+From 95c67908c1539e26b8d95a9a17d420a6611163a3 Mon Sep 17 00:00:00 2001
+From: Steven Allen <steven@stebalien.com>
+Date: Mon, 12 Aug 2013 18:37:54 -0700
+Subject: [PATCH] Fix memory leak in URL scanning code
+
+---
+ menu.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/menu.c b/menu.c
+index cd3f85a..12e1ae2 100644
+--- a/menu.c
++++ b/menu.c
+@@ -60,6 +60,8 @@ char *extract_urls(const char *to_match)
+
+ urls = string_append(urls, match, "\n");
+
++ free(match);
++
+ p += m.rm_eo;
+ }
+ return urls;
+--
+1.9.1
+