[ULOGD2 PATCH 10/18] Don't free pluginstance when leaving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If we free pluginstance in the stop function we won't
be able to iter anymore on the stack linked list.

Signed-off-by: Eric Leblond <eric@xxxxxx>
---
 input/packet/ulogd_inppkt_NFLOG.c |    2 --
 input/packet/ulogd_inppkt_ULOG.c  |    1 -
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/input/packet/ulogd_inppkt_NFLOG.c b/input/packet/ulogd_inppkt_NFLOG.c
index e27355d..9a39234 100644
--- a/input/packet/ulogd_inppkt_NFLOG.c
+++ b/input/packet/ulogd_inppkt_NFLOG.c
@@ -569,8 +569,6 @@ static int stop(struct ulogd_pluginstance *pi)
 	nflog_unbind_group(ui->nful_gh);
 	nflog_close(ui->nful_h);
 
-	free(pi);
-
 	return 0;
 }
 
diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c
index 00975de..719898d 100644
--- a/input/packet/ulogd_inppkt_ULOG.c
+++ b/input/packet/ulogd_inppkt_ULOG.c
@@ -309,7 +309,6 @@ static int fini(struct ulogd_pluginstance *pi)
 	struct ulog_input *ui = (struct ulog_input *)pi->private;
 
 	ulogd_unregister_fd(&ui->ulog_fd);
-	free(pi);
 
 	return 0;
 }
-- 
1.5.6.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux