From 1f1081b8bfcb5825277d85f3af98e72759425ca4 Mon Sep 17 00:00:00 2001 From: mainzelm Date: Mon, 13 Oct 2003 09:52:30 +0000 Subject: [PATCH] Fix memory leak in format_date. --- scsh/time1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/scsh/time1.c b/scsh/time1.c index 1dd5561..19d4146 100644 --- a/scsh/time1.c +++ b/scsh/time1.c @@ -413,6 +413,7 @@ s48_value format_date(s48_value sch_fmt, s48_value sch_sec, s48_value sch_min, #endif sch_ans = s48_enter_string(target); Free(fmt2); + Free(target); if( oldenv ) revert_env(oldenv); return sch_ans;