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

Function redisFreeSSLContext

deps/hiredis/ssl.c:190–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void redisFreeSSLContext(redisSSLContext *ctx)
191{
192 if (!ctx)
193 return;
194
195 if (ctx->server_name) {
196 hi_free(ctx->server_name);
197 ctx->server_name = NULL;
198 }
199
200 if (ctx->ssl_ctx) {
201 SSL_CTX_free(ctx->ssl_ctx);
202 ctx->ssl_ctx = NULL;
203 }
204
205 hi_free(ctx);
206}
207
208
209/**

Callers 4

mainFunction · 0.85
redisCreateSSLContextFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls 1

hi_freeFunction · 0.70

Tested by 1

mainFunction · 0.68