From: Sami Kerola Date: Sun, 12 Jun 2011 22:11:56 +0000 (+0200) Subject: getopt: remove unnecessary free() X-Git-Tag: v2.20-rc1~138^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0320b25e0cf4efd9b49d2a3356cf8530a1820fe;p=thirdparty%2Futil-linux.git getopt: remove unnecessary free() Signed-off-by: Sami Kerola --- diff --git a/getopt/getopt.c b/getopt/getopt.c index ebddc30b8e..ceb9d3dedf 100644 --- a/getopt/getopt.c +++ b/getopt/getopt.c @@ -104,8 +104,6 @@ static const char *normalize(const char *arg) const char *argptr=arg; char *bufptr; - free(BUFFER); - if (!quote) { /* Just copy arg */ BUFFER=xmalloc(strlen(arg)+1);