diff options
Diffstat (limited to 'runner')
| -rw-r--r-- | runner/executor.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runner/executor.c b/runner/executor.c index 7a7e29d9..af02c5a8 100644 --- a/runner/executor.c +++ b/runner/executor.c @@ -46,6 +46,10 @@ static void close_watchdogs(struct settings *settings) for (i = 0; i < watchdogs.num_dogs; i++) { __close_watchdog(watchdogs.fds[i]); } + + free(watchdogs.fds); + watchdogs.num_dogs = 0; + watchdogs.fds = NULL; } static void close_watchdogs_atexit(void) |
