From a9969d49ff12e32cc4a5c353c4801a36def2bc6c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Thu, 16 Apr 1998 14:30:50 -0700
Subject: [PATCH] memory leak fixed

Rev: src/error.c:1.18
---
 src/error.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/error.c b/src/error.c
index e4c628a17c..6e6a963117 100644
--- a/src/error.c
+++ b/src/error.c
@@ -16,7 +16,7 @@
 #include "backend.h"
 #include "operators.h"
 
-RCSID("$Id: error.c,v 1.17 1998/04/13 14:19:40 grubba Exp $");
+RCSID("$Id: error.c,v 1.18 1998/04/16 21:30:50 hubbe Exp $");
 
 #undef ATTRIBUTE
 #define ATTRIBUTE(X)
@@ -64,6 +64,8 @@ void pike_throw(void) ATTRIBUTE((noreturn))
 #endif
     free_object(fp->current_object);
     free_program(fp->context.prog);
+    if(fp->context.parent)
+      free_object(fp->context.parent);
     
     fp = fp->parent_frame;
   }
-- 
GitLab