MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sentinelReleaseScriptJob

Function sentinelReleaseScriptJob

app/redis-6.2.6/src/sentinel.c:770–776  ·  view source on GitHub ↗

Release a script job structure and all the associated data. */

Source from the content-addressed store, hash-verified

768
769/* Release a script job structure and all the associated data. */
770void sentinelReleaseScriptJob(sentinelScriptJob *sj) {
771 int j = 0;
772
773 while(sj->argv[j]) sdsfree(sj->argv[j++]);
774 zfree(sj->argv);
775 zfree(sj);
776}
777
778#define SENTINEL_SCRIPT_MAX_ARGS 16
779void sentinelScheduleScriptExecution(char *path, ...) {

Calls 2

sdsfreeFunction · 0.85
zfreeFunction · 0.70

Tested by

no test coverage detected