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

Function sentinelReleaseScriptJob

src/sentinel.cpp:772–778  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

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

Calls 2

sdsfreeFunction · 0.85
zfreeFunction · 0.85

Tested by

no test coverage detected