MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / json_destroy_config

Function json_destroy_config

deps/lua/src/lua_cjson.c:361–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static int json_destroy_config(lua_State *l)
362{
363 json_config_t *cfg;
364
365 cfg = lua_touserdata(l, 1);
366 if (cfg)
367 strbuf_free(&cfg->encode_buf);
368 cfg = NULL;
369
370 return 0;
371}
372
373static void json_create_config(lua_State *l)
374{

Callers

nothing calls this directly

Calls 2

lua_touserdataFunction · 0.85
strbuf_freeFunction · 0.85

Tested by

no test coverage detected