Fix memory leak in format_date.
This commit is contained in:
parent
1521521116
commit
1f1081b8bf
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue