fix a memory leak
authorLaurent Mazet <mazet@softndesign.org>
Tue, 14 Feb 2023 21:38:43 +0000 (22:38 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 14 Feb 2023 21:38:43 +0000 (22:38 +0100)
program.c

index ef6d833be6c1ca651008d69a183cab3ee294747f..43e7b9224437cf5f2722124640daa384b25fb729 100644 (file)
--- a/program.c
+++ b/program.c
@@ -111,6 +111,7 @@ double call (int id, int nbargs, element_t **args)
     /* restore context */
     backup_ws (programs[n]);
     restore_ws (tmp);
+    free_ws (tmp);
 
     return ret;
 }