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