Correct double-free on exit when using --watchfd - issue #96.

This commit is contained in:
Andrew Wood
2024-09-07 21:04:09 +01:00
parent 2c468b0bb2
commit 69a56ced7a
3 changed files with 7 additions and 1 deletions
+1
View File
@@ -478,6 +478,7 @@ int pv_watchpid_scanfds(pvstate_t state,
/*@-mustfreeonly@ *//* splint - this is not a leak, this is a new entry. */
info_array[use_idx].state->control.name = NULL;
info_array[use_idx].state->control.format_string = NULL;
info_array[use_idx].state->control.output_name = NULL;
/*@+mustfreeonly@ */
info_array[use_idx].state->control.default_format[0] = '\0';
use_format_string =