SHA256
3
0
forked from pool/bash
bash/bash-4.0.24-memleak-read.patch
OBS User autobuild 92426585d7 Accepting request 18772 from Base:System
Copy from Base:System/bash based on submit request 18772 from user coolo

OBS-URL: https://build.opensuse.org/request/show/18772
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/bash?expand=0&rev=43
2009-08-28 15:45:57 +00:00

17 lines
443 B
Diff

Index: builtins/read.def
===================================================================
--- builtins/read.def.orig
+++ builtins/read.def
@@ -763,7 +763,10 @@ assign_vars:
if (*input_string == 0)
tofree = input_string = t;
else
- input_string = strip_trailing_ifs_whitespace (t1, ifs_chars, saw_escape);
+ {
+ input_string = strip_trailing_ifs_whitespace (t1, ifs_chars, saw_escape);
+ tofree = t;
+ }
}
#endif