From b9968a12b3fca21b38c97e529a69100539bfac45 Mon Sep 17 00:00:00 2001 From: "Jean-Marc Pigeon (Delson)" Date: Fri, 12 Jul 2024 01:59:59 -0400 Subject: [PATCH] fix memory leak on modrec --- lib/modrec.c | 6 +++--- lib/unisoc.c | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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; -- 2.47.3