From 757f2e48e5f111c8b5dac6ea8f8c27fb68d3675e Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Tue, 10 Jan 2017 23:55:59 +1000 Subject: [PATCH] * free memory for db handled on close --- src/database.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/database.c b/src/database.c index 22e36da..00b8d8e 100644 --- a/src/database.c +++ b/src/database.c @@ -142,6 +142,8 @@ simdb_close(simdb_t *db) { if (db->fd >= 0) close(db->fd); + + FREE(db); } const char *