iptpinhole.c: fix ressource leak in ip6tc_init_verify_append()
fixes #393
This commit is contained in:
parent
a77d1ff9d3
commit
6317e73342
|
@ -1,4 +1,7 @@
|
|||
$Id: Changelog.txt,v 1.449 2019/06/25 21:28:28 nanard Exp $
|
||||
$Id: Changelog.txt,v 1.450 2019/08/24 08:42:50 nanard Exp $
|
||||
|
||||
2019/08/24:
|
||||
Small fixes in netfilter code
|
||||
|
||||
2019/06/25:
|
||||
Update netfilter nftables code
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/* $Id: iptpinhole.c,v 1.18 2018/03/13 23:05:21 nanard Exp $ */
|
||||
/* $Id: iptpinhole.c,v 1.20 2019/08/24 07:18:23 nanard Exp $ */
|
||||
/* MiniUPnP project
|
||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||
* (c) 2012-2018 Thomas Bernard
|
||||
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
|
||||
* (c) 2012-2019 Thomas Bernard
|
||||
* This software is subject to the conditions detailed
|
||||
* in the LICENCE file provided within the distribution */
|
||||
|
||||
|
@ -186,6 +186,7 @@ ip6tc_init_verify_append(const char * table,
|
|||
syslog(LOG_ERR, "ip6tc_commit() error : %s", ip6tc_strerror(errno));
|
||||
goto error;
|
||||
}
|
||||
ip6tc_free(h);
|
||||
return 0; /* ok */
|
||||
error:
|
||||
ip6tc_free(h);
|
||||
|
|
Loading…
Reference in New Issue