summaryrefslogtreecommitdiff
path: root/x11-misc/dunst-1.0.0/fix_memory_leak_1.patch
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2014-04-10 14:32:25 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2014-04-10 14:33:00 +0200
commita68c5f88f71682d37924bf2794a163b0b8137e08 (patch)
tree3180ecbb099fbdc27b3f8cfdedcccbb08137550e /x11-misc/dunst-1.0.0/fix_memory_leak_1.patch
parent527c8a44ac792be5a80e704a5616775bb1bf1f99 (diff)
downloadpatches-a68c5f88f71682d37924bf2794a163b0b8137e08.tar.gz
patches-a68c5f88f71682d37924bf2794a163b0b8137e08.tar.bz2
patches-a68c5f88f71682d37924bf2794a163b0b8137e08.zip
More dunst patches
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
+