reset fcgi array in free_config

otherwise path, port and/or prog could become an invalid pointer.
This commit is contained in:
Omar Polo 2021-07-06 10:46:50 +00:00
parent 4aa1dd553a
commit ef945cf415
1 changed files with 6 additions and 0 deletions

6
gmid.c
View File

@ -328,6 +328,12 @@ free_config(void)
free(fcgi[i].path);
free(fcgi[i].port);
free(fcgi[i].prog);
fcgi[i].path = NULL;
fcgi[i].port = NULL;
fcgi[i].prog = NULL;
fcgi[i].s = FCGI_OFF;
}
tls_free(ctx);