Fix memory leak.
PR: 199670 Reviewed by: ae
This commit is contained in:
parent
723af368a1
commit
fdf6290ea9
@ -242,6 +242,8 @@ add_redir_spool_cfg(char *buf, struct cfg_nat *ptr)
|
||||
}
|
||||
if (r->alink[0] == NULL) {
|
||||
printf("LibAliasRedirect* returned NULL\n");
|
||||
free(r->alink, M_IPFW);
|
||||
free(r, M_IPFW);
|
||||
return (EINVAL);
|
||||
}
|
||||
/* LSNAT handling. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user