summaryrefslogtreecommitdiffstats
path: root/abs/core/bash/bash-4.3-old-memleak.patch
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-01-20 16:50:35 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-01-20 16:50:35 (GMT)
commit3307f71de770b7a9ba87e299a0c11c4e8e18eab2 (patch)
treeaa4d76111c786a3d7d7dfdc189fa993494ad047a /abs/core/bash/bash-4.3-old-memleak.patch
parent33812001550db57cb5a6b16885061acb04e7f2bd (diff)
downloadlinhes_pkgbuild-3307f71de770b7a9ba87e299a0c11c4e8e18eab2.zip
linhes_pkgbuild-3307f71de770b7a9ba87e299a0c11c4e8e18eab2.tar.gz
linhes_pkgbuild-3307f71de770b7a9ba87e299a0c11c4e8e18eab2.tar.bz2
bash: update to 4.3.042
Diffstat (limited to 'abs/core/bash/bash-4.3-old-memleak.patch')
-rw-r--r--abs/core/bash/bash-4.3-old-memleak.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/abs/core/bash/bash-4.3-old-memleak.patch b/abs/core/bash/bash-4.3-old-memleak.patch
new file mode 100644
index 0000000..ff2b665
--- /dev/null
+++ b/abs/core/bash/bash-4.3-old-memleak.patch
@@ -0,0 +1,24 @@
+diff -up bash-4.3/subst.c.old bash-4.3/subst.c
+--- bash-4.3/subst.c.old 2015-08-03 10:32:37.353490080 +0200
++++ bash-4.3/subst.c 2015-08-03 10:33:34.818533408 +0200
+@@ -9492,7 +9492,7 @@ make_internal_declare (word, option)
+ char *word;
+ char *option;
+ {
+- int t;
++ int t, r;
+ WORD_LIST *wl;
+ WORD_DESC *w;
+
+@@ -9504,7 +9504,10 @@ make_internal_declare (word, option)
+ wl = make_word_list (w, (WORD_LIST *)NULL);
+ wl = make_word_list (make_word (option), wl);
+
+- return (declare_builtin (wl));
++ r = declare_builtin (wl);
++
++ dispose_words (wl);
++ return r;
+ }
+ #endif
+