Blame SOURCES/bash-4.2-leak-compound.patch

a01f16
diff -up bash-4.2/subst.c.old bash-4.2/subst.c
a01f16
--- bash-4.2/subst.c.old	2015-12-09 13:24:47.369738319 +0100
a01f16
+++ bash-4.2/subst.c	2015-12-09 13:28:27.366024824 +0100
a01f16
@@ -2713,6 +2713,8 @@ do_compound_assignment (name, value, fla
a01f16
       else if (v == 0 || (array_p (v) == 0 && assoc_p (v) == 0) || v->context != variable_context)
a01f16
         v = make_local_array_variable (name);
a01f16
       assign_compound_array_list (v, list, flags);
a01f16
+      if (list)
a01f16
+	dispose_words (list);
a01f16
     }
a01f16
   else
a01f16
     v = assign_array_from_string (name, value, flags);