[ulogd2] ulogd: include config.h in all files.
Eric Leblond
netfilter-cvslog-bounces at lists.netfilter.org
Fri Apr 3 23:42:00 CEST 2009
Gitweb: http://git.netfilter.org/cgi-bin/gitweb.cgi?p=ulogd2.git;a=commit;h=2d92db0597ce4291f38606fd2789876034fab12f
commit 2d92db0597ce4291f38606fd2789876034fab12f
Author: Eric Leblond <eric at inl.fr>
AuthorDate: Tue Mar 10 07:43:30 2009 +0100
Commit: Eric Leblond <eric at inl.fr>
CommitDate: Tue Mar 10 07:43:30 2009 +0100
ulogd: include config.h in all files.
This patch adds config.h inclusion in ulogd.h to be able to use all
defined value in the whole project.
commit ff354cf08c43f607d42990e6e93c70204046dda3
Author: Eric Leblond <eric at inl.fr>
AuthorDate: Tue Mar 10 07:37:38 2009 +0100
Commit: Eric Leblond <eric at inl.fr>
CommitDate: Tue Mar 10 07:37:38 2009 +0100
db plugins: free memory at exit.
This patches frees an allocated buffer when ulogd is quitting.
via 2d92db0597ce4291f38606fd2789876034fab12f (commit)
via ff354cf08c43f607d42990e6e93c70204046dda3 (commit)
from c34eddedd3306749d6c03dd65aa55dff0ff512f3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 2d92db0597ce4291f38606fd2789876034fab12f
Author: Eric Leblond <eric at inl.fr>
Date: Tue Mar 10 07:43:30 2009 +0100
ulogd: include config.h in all files.
This patch adds config.h inclusion in ulogd.h to be able to use all
defined value in the whole project.
commit ff354cf08c43f607d42990e6e93c70204046dda3
Author: Eric Leblond <eric at inl.fr>
Date: Tue Mar 10 07:37:38 2009 +0100
db plugins: free memory at exit.
This patches frees an allocated buffer when ulogd is quitting.
-----------------------------------------------------------------------
include/ulogd/ulogd.h | 1 +
util/db.c | 7 +++++++
2 files changed, 8 insertions(+), 0 deletions(-)
This patches frees an allocated buffer when ulogd is quitting.
diff --git a/util/db.c b/util/db.c
index 7ab609d..fee91b2 100644
--- a/util/db.c
+++ b/util/db.c
@@ -193,6 +193,13 @@ int ulogd_db_stop(struct ulogd_pluginstance *upi)
free(upi->input.keys);
upi->input.keys = NULL;
}
+
+ /* try to free the buffer for insert statement */
+ if (di->stmt) {
+ free(di->stmt);
+ di->stmt = NULL;
+ }
+
return 0;
}
More information about the netfilter-cvslog
mailing list