nalika / rpms / bash

Forked from rpms/bash 2 years ago
Clone

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

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