Don't leak tmp
if p->nc_lookups
can't be malloced
MFC after: 1 week Reported by: cppcheck Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
b9c52b50a7
commit
9c11e6b093
@ -722,6 +722,7 @@ dup_ncp(struct netconfig *ncp)
|
||||
if (p->nc_lookups == NULL) {
|
||||
free(p->nc_netid);
|
||||
free(p);
|
||||
free(tmp);
|
||||
return(NULL);
|
||||
}
|
||||
for (i=0; i < p->nc_nlookups; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user