On Thu, Feb 11, 2016 at 03:50:24PM +0100, Alexander Schrijver wrote:
> 
> The patch below fixed it for me. (server_close_http calls str_match_free and
> server_close_http can be called more than once.)
> 
> Index: patterns.c
> ===================================================================
> RCS file: /backup/mirrors/cvsync/src/usr.sbin/httpd/patterns.c,v
> retrieving revision 1.4
> diff -u -p -u -r1.4 patterns.c
> --- patterns.c  18 Aug 2015 08:26:39 -0000      1.4
> +++ patterns.c  11 Feb 2016 14:45:55 -0000
> @@ -708,5 +708,6 @@ str_match_free(struct str_match *m)
>         for (i = 0; i < m->sm_nmatch; i++)
>                 free(m->sm_match[i]);
>         free(m->sm_match);
> +       m->sm_match = NULL;
>         m->sm_nmatch = 0;
>  }

Committed, thanks !
-- 
Sebastien Marie

Reply via email to