Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix double free
  • Loading branch information
khwilliamson committed Jan 21, 2023
1 parent 7072a7b commit 87bbbcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perl.h
Expand Up @@ -7254,8 +7254,8 @@ the plain locale pragma without a parameter (S<C<use locale>>) is in effect.
# ifdef USE_THREAD_SAFE_LOCALE_EMULATION
# define LOCALE_TERM_THREAD_SAFE_LOCALE_EMULATION_ \
STMT_START { \
Safefree(PL_LC_ALL_separator_string); \
PL_LC_ALL_separator_string = NULL; \
/*Safefree(PL_LC_ALL_separator_string);*/ \
/*PL_LC_ALL_separator_string = NULL;*/ \
} STMT_END
# else
# define LOCALE_TERM_THREAD_SAFE_LOCALE_EMULATION_ NOOP
Expand Down

0 comments on commit 87bbbcd

Please sign in to comment.