Browse Source

oops, 5.4 and 5.5 use malloc in TSRM

pull/684/head
Stanislav Malyshev 12 years ago
parent
commit
4392339c3e
  1. 4
      ext/bz2/bz2.c

4
ext/bz2/bz2.c

@ -230,7 +230,7 @@ PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper,
if (php_check_open_basedir(path_copy TSRMLS_CC)) {
#ifdef VIRTUAL_DIR
efree(path_copy);
free(path_copy);
#endif
return NULL;
}
@ -242,7 +242,7 @@ PHP_BZ2_API php_stream *_php_stream_bz2open(php_stream_wrapper *wrapper,
*opened_path = estrdup(path_copy);
}
#ifdef VIRTUAL_DIR
efree(path_copy);
free(path_copy);
#endif
path_copy = NULL;

Loading…
Cancel
Save