mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Free path before returnig.
CID: 977827
This commit is contained in:
parent
df017019c2
commit
076950009f
1 changed files with 2 additions and 0 deletions
|
|
@ -1510,6 +1510,7 @@ pfctl_rules(int dev, char *filename, int opts, int optimize,
|
|||
if (pfctl_trans(dev, t, DIOCXCOMMIT, osize))
|
||||
ERR("DIOCXCOMMIT");
|
||||
}
|
||||
free(path);
|
||||
return (0);
|
||||
|
||||
_error:
|
||||
|
|
@ -1519,6 +1520,7 @@ _error:
|
|||
err(1, "DIOCXROLLBACK");
|
||||
exit(1);
|
||||
} else { /* sub ruleset */
|
||||
free(path);
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue