diff options
Diffstat (limited to 'src/lua/lua_cryptobox.c')
-rw-r--r-- | src/lua/lua_cryptobox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_cryptobox.c b/src/lua/lua_cryptobox.c index 94dec34f5..534ffc0e5 100644 --- a/src/lua/lua_cryptobox.c +++ b/src/lua/lua_cryptobox.c @@ -1131,6 +1131,10 @@ lua_cryptobox_verify_file (lua_State *L) } } else { + if (map != NULL) { + munmap (map, len); + } + return luaL_error (L, "invalid arguments"); } |