From: Egor Date: Fri, 28 Jun 2024 18:26:27 +0000 (+0300) Subject: fix double-free with jobs X-Git-Url: https://git.patchysicp.xyz/?a=commitdiff_plain;h=4880c0dfdee2c31efb5b9343c843877f9f22e658;p=patchyircd.git fix double-free with jobs --- diff --git a/src/job.c b/src/job.c index e0e5103..ea043c1 100644 --- a/src/job.c +++ b/src/job.c @@ -62,6 +62,7 @@ static void job_process(void) current_child = pid; memset(jobtab[0].data, 0, jobtab[0].len); free(jobtab[0].data); + jobtab[0].data = 0; jobtab[0].job = 0; } }