summaryrefslogtreecommitdiffstats
path: root/util/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/db.c')
-rw-r--r--util/db.c7
1 files changed, 7 insertions, 0 deletions
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;
}