summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c1
-rw-r--r--os2/os2ish.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/os2/os2.c b/os2/os2.c
index 8a292e30f2..44f99c4c24 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -1147,6 +1147,7 @@ Perl_OS2_init(char **env)
{
char *shell;
+ MALLOC_INIT;
settmppath();
OS2_Perl_data.xs_init = &Xs_OS2_init;
if (environ == NULL) {
diff --git a/os2/os2ish.h b/os2/os2ish.h
index b62e3d04d4..9a3d267ae5 100644
--- a/os2/os2ish.h
+++ b/os2/os2ish.h
@@ -74,7 +74,7 @@ void Perl_OS2_init(char **);
_wildcard(argcp, argvp); \
Perl_OS2_init(env); } STMT_END
-#define PERL_SYS_TERM()
+#define PERL_SYS_TERM() MALLOC_TERM
/* #define PERL_SYS_TERM() STMT_START { \
if (Perl_HAB_set) WinTerminate(Perl_hab); } STMT_END */