Release a script job structure and all the associated data. */
| 768 | |
| 769 | /* Release a script job structure and all the associated data. */ |
| 770 | void 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 |
| 779 | void sentinelScheduleScriptExecution(char *path, ...) { |
no test coverage detected