File invalid-free-on-malformed-commands.patch of Package ed.4093

diff -ubr ed-1.9-orig/regex.c ed-1.9/regex.c
--- ed-1.9-orig/regex.c	2017-01-31 16:18:21.598400027 +0100
+++ ed-1.9/regex.c	2017-01-31 16:19:03.042993055 +0100
@@ -144,7 +144,6 @@
     char buf[80];
     regerror( n, exp, buf, sizeof buf );
     set_error_msg( buf );
-    free( exp );
     exp = 0;
     }
   return exp;
openSUSE Build Service is sponsored by