Skip to content
Permalink
Browse files

Fix a memleak before assertion in l_get_mod_storage

  • Loading branch information...
nerzhul committed Jun 30, 2018
1 parent 2513886 commit d7f873bc8d8edc73cee1c40db055b038febc4e1b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/script/lua_api/l_storage.cpp
@@ -37,6 +37,7 @@ int ModApiStorage::l_get_mod_storage(lua_State *L)
store->load(gamedef->getModStoragePath());
gamedef->registerModStorage(store);
} else {
delete store;
assert(false); // this should not happen
}

0 comments on commit d7f873b

Please sign in to comment.
You can’t perform that action at this time.