From: François Pinard Date: Tue, 22 Nov 2011 04:33:53 +0000 (-0500) Subject: request.c (scan_options): Write new_ instead of new. X-Git-Tag: v3.7~192 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f0a99ca1b5e6ed74862aa3541bf6e0d3b1a8990;p=recode request.c (scan_options): Write new_ instead of new. Reported by Seanster. --- diff --git a/THANKS b/THANKS index 8b491db..1cf64ae 100644 --- a/THANKS +++ b/THANKS @@ -238,6 +238,7 @@ Santiago Vila Doncel | sanvila at unex dot es Saverio Pangoli | saverio at mystere dot sci dot sns dot it Sebastian Huebner | cyco at baud dot de | http://www.baud.de/cyco/ +Seanster | Seanster at Seanster dot com Scott Schwartz | schwartz at bio dot cse dot psu dot edu Simon Cozens | simon at cozens dot net Slaven Rezic | eserte at cs dot tu-berlin dot de diff --git a/src/request.c b/src/request.c index d1bbaaf..c7e5b11 100644 --- a/src/request.c +++ b/src/request.c @@ -766,7 +766,7 @@ scan_options (RECODE_REQUEST request) ALLOC (copy, strlen (request->scanned_string) + 1, char); if (!copy) { - free (new); + free (new_); break; /* FIXME: should interrupt decoding */ } strcpy (copy, request->scanned_string);