Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37561667
en ru br
ALT Linux repositórios
S:0.99-alt3
5.0: 0.98-alt4
4.1: 0.98-alt4
4.0: 0.98-alt4
3.0: 0.98-alt1

Outros repositórios
Upstream:0.98

Group :: Gráficos
RPM: barcode

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: barcode-0.98-leak-fix.patch
Download


--- cmdline.c.old	2000-05-08 22:52:36.000000000 +0200
+++ cmdline.c	2009-09-17 10:55:51.000000000 +0200
@@ -156,6 +156,7 @@
 	     */
 	    if (retval == -1)
 		commandline_errormsg(stderr, args, argv[0], errorhead);
+	    free(getopt_desc);
 	    return retval;
 	}
     }
@@ -165,13 +166,18 @@
 	for (ptr = args; ptr->option; ptr++)
 	    if (opt == ptr->option)
 		break;
-	if (!ptr->option) /* unknown option */
+	if (!ptr->option){ /* unknown option */
+	    free(getopt_desc);
 	    return commandline_errormsg(stderr, args, argv[0], errorhead);
+	}
 	if ( (retval = commandline_oneopt(ptr, optarg)) ) { /*  wrong arg */
 	    if (retval == -1)
 		commandline_errormsg(stderr, args, argv[0], errorhead);
+	    free(getopt_desc);
 	    return retval;
 	}
     }
+
+    free(getopt_desc);
     return 0;
 }
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009