From: Jean-Marc Pigeon (Delson) Date: Fri, 12 Jul 2024 05:59:59 +0000 (-0400) Subject: fix memory leak on modrec X-Git-Tag: tag-0.3~11 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=b9968a12b3fca21b38c97e529a69100539bfac45;p=jmp%2Fmailleur fix memory leak on modrec --- diff --git a/lib/modrec.c b/lib/modrec.c index 7a23be0..0ec202b 100644 --- a/lib/modrec.c +++ b/lib/modrec.c @@ -44,9 +44,9 @@ while (proceed==true) { phase=999; //doc not open! break; case 2 : //Terminating all remaining process - (void) sleep(1); - if (hangup==false) - phase--; //looping forever + (void) fprintf(stderr,"JMPDBG wait 5 sec\n"); + (void) sleep(5); + (void) fprintf(stderr,"JMPDBG wleep completed\n"); break; default : //SAFE Guard proceed=false; diff --git a/lib/unisoc.c b/lib/unisoc.c index dcfdc00..22f9fbb 100644 --- a/lib/unisoc.c +++ b/lib/unisoc.c @@ -256,6 +256,7 @@ while (proceed==true) { break; case 3 : //binding socket soc=bindhandle(tobind,binding); + (void) freeaddrinfo(tobind); break; default : //SAFE Guard proceed=false;