mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
MFC r298868, r298874:
restore: fix memory and resource handle leaks. CID: 272297, 1007784
This commit is contained in:
parent
2c1084bf36
commit
114d393b53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=299148
@ -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…
Reference in New Issue
Block a user