X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fb2d24882e31c4a9915a87e28081c3f7d6f3bea4..833081e3e79cf86a7ebae94e3037ef04756d44fd:/client/scripting.c?ds=sidebyside diff --git a/client/scripting.c b/client/scripting.c index 15c336ff..880b7cb2 100644 --- a/client/scripting.c +++ b/client/scripting.c @@ -341,7 +341,8 @@ int setLuaPath( lua_State* L, const char* path ) lua_pushstring( L, buf ); // push the new one lua_setfield( L, -2, "path" ); // set the field "path" in table at -2 with value at top of stack lua_pop( L, 1 ); // get rid of package table from top of stack - return 0; // all done! + free(buf); + return 0; // all done! }