You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by km...@apache.org on 2017/12/28 22:20:16 UTC
svn commit: r1819442 - /spamassassin/branches/3.4/spamc/getopt.c
Author: kmcgrail
Date: Thu Dec 28 22:20:16 2017
New Revision: 1819442
URL: http://svn.apache.org/viewvc?rev=1819442&view=rev
Log:
bug 7524 - opt cant be freed here or getoptlong fails
Modified:
spamassassin/branches/3.4/spamc/getopt.c
Modified: spamassassin/branches/3.4/spamc/getopt.c
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.4/spamc/getopt.c?rev=1819442&r1=1819441&r2=1819442&view=diff
==============================================================================
--- spamassassin/branches/3.4/spamc/getopt.c (original)
+++ spamassassin/branches/3.4/spamc/getopt.c Thu Dec 28 22:20:16 2017
@@ -250,7 +250,7 @@ spamc_getopt_long(int argc, char * const
for(i=0; ; i++) {
/* changed to longopts[i].name[0] == 0 - bug 7148 */
if((longopts[i].name == NULL) || (longopts[i].name[0] == 0))
- free(opt);
+ /* free(opt); */ /* Reverting per bug 7524 */
return(longoptiserr(argc, argv, spamc_optind-1, OPTERRNF));
if(((strncmp(longopt+2, longopts[i].name, longoptlen)) == 0) && (strlen(longopts[i].name) == longoptlen)) {
*longindex = i;