summaryrefslogtreecommitdiff
path: root/app-shells/bash/files/bash-3.0-read-memleak.patch
blob: 6cb769f3af3478fe3766101aa74fb291c2a28f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Ripped from Fedora

http://lists.gnu.org/archive/html/bug-bash/2005-12/msg00013.html
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=173283

--- bash-3.0/builtins/read.def
+++ bash-3.0/builtins/read.def
@@ -461,6 +461,7 @@
   if (retval < 0)
     {
       builtin_error (_("read error: %d: %s"), fd, strerror (errno));
+      run_unwind_frame ("read_builtin");
       return (EXECUTION_FAILURE);
     }
 #endif