2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

* fix a few more memory leaks

* undocumented symbol table dumping short options weren't actually
   accepted by the parser.
This commit is contained in:
Steve Beattie
2009-07-24 13:24:53 +00:00
parent 1b069745b3
commit f9c5756b4d
3 changed files with 8 additions and 1 deletions

View File

@@ -169,6 +169,8 @@ void pwarn(char *fmt, ...)
va_start(arg, fmt);
vfprintf(stderr, newfmt, arg);
va_end(arg);
free(newfmt);
}
static int process_args(int argc, char *argv[])
@@ -177,7 +179,7 @@ static int process_args(int argc, char *argv[])
int count = 0;
option = OPTION_ADD;
while ((c = getopt_long(argc, argv, "adf:hrRvpI:b:BCNSm:qn:", long_options, &o)) != -1)
while ((c = getopt_long(argc, argv, "adf:hrRvpI:b:BCDENSm:qn:", long_options, &o)) != -1)
{
switch (c) {
case 0: