Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37849500
en ru br
Репозитории ALT
S:0.99-alt3
5.1: 0.98-alt5
4.1: 0.98-alt4
4.0: 0.98-alt4
3.0: 0.98-alt1
www.altlinux.org/Changes

Другие репозитории
Upstream:0.98

Группа :: Графика
Пакет: barcode

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: barcode-0.98-leak-fix.patch
Скачать


--- 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;
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin