Skip to content

Commit 95e6fd6

Browse files
committed
memleak
1 parent 6109488 commit 95e6fd6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

apm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ void extract_data(TSRMLS_D)
611611
zend_string *tmpstr;
612612
tmpstr = zend_print_zval_r_to_str(tmp, 0);
613613
smart_str_append(&APM_RD(cookies), tmpstr);
614+
zend_string_release(tmpstr);
614615
#else
615616
APM_G(buffer) = &APM_RD(cookies);
616617
zend_print_zval_r_ex(apm_write, tmp, 0 TSRMLS_CC);
@@ -627,6 +628,7 @@ void extract_data(TSRMLS_D)
627628
zend_string *tmpstr;
628629
tmpstr = zend_print_zval_r_to_str(tmp, 0);
629630
smart_str_append(&APM_RD(post_vars), tmpstr);
631+
zend_string_release(tmpstr);
630632
#else
631633
APM_G(buffer) = &APM_RD(post_vars);
632634
zend_print_zval_r_ex(apm_write, tmp, 0 TSRMLS_CC);

0 commit comments

Comments
 (0)