MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / ErrorCtx_Clear

Function ErrorCtx_Clear

src/errors/errors.c:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void ErrorCtx_Clear(void) {
40 ErrorCtx *ctx = ErrorCtx_Get();
41 ASSERT(ctx != NULL);
42
43 if(ctx->error != NULL) {
44 free(ctx->error);
45 ctx->error = NULL;
46 }
47
48 if(ctx->breakpoint != NULL) {
49 rm_free(ctx->breakpoint);
50 ctx->breakpoint = NULL;
51 }
52}
53
54//------------------------------------------------------------------------------
55// Error setting and emitting

Callers 5

_ExecuteQueryFunction · 0.85
_DelegateWriterFunction · 0.85
_queryFunction · 0.85
Graph_ExplainFunction · 0.85
ErrorCtx_EmitExceptionFunction · 0.85

Calls 2

ErrorCtx_GetFunction · 0.85
rm_freeFunction · 0.85

Tested by

no test coverage detected