MFC r298868, r298874:
restore: fix memory and resource handle leaks. CID: 272297, 1007784
This commit is contained in:
parent
fdef3ab021
commit
399bde7ffd
@ -366,7 +366,8 @@ obsolete(int *argcp, char **argvp[])
|
||||
if (flags) {
|
||||
*p = '\0';
|
||||
*nargv++ = flagsp;
|
||||
}
|
||||
} else
|
||||
free(flagsp);
|
||||
|
||||
/* Copy remaining arguments. */
|
||||
while ((*nargv++ = *argv++));
|
||||
|
@ -560,6 +560,7 @@ initsymtable(char *filename)
|
||||
fprintf(stderr, "read: %s\n", strerror(errno));
|
||||
panic("cannot read symbol table file %s\n", filename);
|
||||
}
|
||||
(void)close(fd);
|
||||
switch (command) {
|
||||
case 'r':
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user