MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / close_sp_int

Function close_sp_int

lua/sp.c:3159–3168  ·  view source on GitHub ↗

SP can't be used anymore

Source from the content-addressed store, hash-verified

3157
3158// SP can't be used anymore
3159static void close_sp_int(SP sp, int freesp)
3160{
3161 if (!sp) return;
3162 reset_sp(sp);
3163 if (sp->lua) lua_close(sp->lua);
3164 comdb2ma mspace = sp->mspace;
3165 free_spversion(sp);
3166 comdb2ma_destroy(mspace);
3167 free(sp);
3168}
3169
3170static void free_dbthread_type(dbthread_type *thd)
3171{

Callers 2

create_sp_intFunction · 0.85
close_spFunction · 0.85

Calls 5

reset_spFunction · 0.85
lua_closeFunction · 0.85
free_spversionFunction · 0.85
comdb2ma_destroyFunction · 0.85
freeFunction · 0.85

Tested by

no test coverage detected