Skip to content

Commit

Permalink
PR 50709 David Binderman: memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
dholland committed May 30, 2016
1 parent 429d436 commit 9f01841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dist/pf/sbin/pfctl/pfctl_optimize.c
@@ -1,4 +1,4 @@
/* $NetBSD: pfctl_optimize.c,v 1.6 2008/06/18 09:06:26 yamt Exp $ */
/* $NetBSD: pfctl_optimize.c,v 1.7 2016/05/30 17:21:07 dholland Exp $ */
/* $OpenBSD: pfctl_optimize.c,v 1.13 2006/10/31 14:17:45 mcbride Exp $ */

/*
Expand Down Expand Up @@ -902,6 +902,7 @@ load_feedback_profile(struct pfctl *pf, struct superblocks *superblocks)
pr.nr = nr;
if (ioctl(pf->dev, DIOCGETRULE, &pr)) {
warn("DIOCGETRULES");
free(por);
return (1);
}
memcpy(&por->por_rule, &pr.rule, sizeof(por->por_rule));
Expand Down

0 comments on commit 9f01841

Please sign in to comment.