iptpinhole.c: fix ressource leak in ip6tc_init_verify_append()

fixes #393
This commit is contained in:
Thomas Bernard 2019-08-24 10:55:33 +02:00
parent a77d1ff9d3
commit 6317e73342
2 changed files with 8 additions and 4 deletions

View File

@ -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

View File

@ -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);