Fix memory leak.

PR:		199670
Reviewed by:	ae
This commit is contained in:
Gleb Smirnoff 2015-04-27 05:44:09 +00:00
parent 723af368a1
commit fdf6290ea9

View File

@ -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. */