diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-14 16:25:41 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-14 16:25:41 +0000 |
commit | 557c870057a43e72983e7f03feedbfc150e0b138 (patch) | |
tree | c59afd40eb471194d76db1bce97659ac16f9a127 /src/lua/lua_cdb.c | |
parent | d0d0f333d3fd5d10bc6b88dd364cb792e326c8c2 (diff) | |
download | rspamd-557c870057a43e72983e7f03feedbfc150e0b138.tar.gz rspamd-557c870057a43e72983e7f03feedbfc150e0b138.zip |
[Project] CDB maps: Start making cdb a first class citizen
Diffstat (limited to 'src/lua/lua_cdb.c')
-rw-r--r-- | src/lua/lua_cdb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_cdb.c b/src/lua/lua_cdb.c index 1f9b48260..0762c8d35 100644 --- a/src/lua/lua_cdb.c +++ b/src/lua/lua_cdb.c @@ -66,6 +66,8 @@ lua_cdb_create (lua_State *L) cdb = g_malloc (sizeof (struct cdb)); cdb->filename = g_strdup (filename); if (cdb_init (cdb, fd) == -1) { + g_free (cdb->filename); + g_free (cdb); msg_warn ("cannot open cdb: %s, %s", filename, strerror (errno)); lua_pushnil (L); } |