diff options
Diffstat (limited to 'src/lua/lua_rsa.c')
-rw-r--r-- | src/lua/lua_rsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_rsa.c b/src/lua/lua_rsa.c index 4b2caa2bf..5e34bc2c6 100644 --- a/src/lua/lua_rsa.c +++ b/src/lua/lua_rsa.c @@ -664,6 +664,8 @@ lua_rsa_sign_memory (lua_State *L) signature->str, (guint *)&signature->len, rsa); if (ret != 1) { + rspamd_fstring_free (signature); + return luaL_error (L, "cannot sign: %s", ERR_error_string (ERR_get_error (), NULL)); } |