~panda-roux/MoonGem

95734358a15cb6229e3b2ddbe33a44527472cec4 — panda-roux 5 months ago 2066c5b
fixing a potential memory leak
1 files changed, 1 insertions(+), 1 deletions(-)

M src/script.c
M src/script.c => src/script.c +1 -1
@@ 191,7 191,7 @@ static void append_dir_to_package_path(lua_State* L, const char* path) {
    char* dir = dirname(path_copy);
    lua_pushfstring(L, ";./%s/?.lua", dir);
    lua_pushfstring(L, ";./%s/?", dir);
    free(dir);
    free(path_copy);
  } else {
    lua_pushfstring(L, ";./%s/?.lua", path);
    lua_pushfstring(L, ";./%s/?", path);