diff options
| author | jvoisin | 2018-01-12 18:28:37 +0100 |
|---|---|---|
| committer | jvoisin | 2018-01-12 18:28:37 +0100 |
| commit | cc258187dcc75c5e343310127a318f0bce984fa7 (patch) | |
| tree | d52a6408ff5b9ba4359332ea7e2d1d6848bd8d64 /src | |
| parent | b55b87dc022319ed5049736c7aa8d862d00d7c69 (diff) | |
Fix a memory leak
Diffstat (limited to 'src')
| -rw-r--r-- | src/sp_disabled_functions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 24d4749..bb4a402 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c | |||
| @@ -469,7 +469,7 @@ ZEND_FUNCTION(eval_blacklist_callback) { | |||
| 469 | } | 469 | } |
| 470 | 470 | ||
| 471 | if (SNUFFLEUPAGUS_G(in_eval) > 0) { | 471 | if (SNUFFLEUPAGUS_G(in_eval) > 0) { |
| 472 | const char* filename = get_eval_filename(zend_get_executed_filename()); | 472 | char* filename = get_eval_filename(zend_get_executed_filename()); |
| 473 | const int line_number = zend_get_executed_lineno(TSRMLS_C); | 473 | const int line_number = zend_get_executed_lineno(TSRMLS_C); |
| 474 | if (1 == SNUFFLEUPAGUS_G(config).config_eval->simulation) { | 474 | if (1 == SNUFFLEUPAGUS_G(config).config_eval->simulation) { |
| 475 | sp_log_msg("eval", SP_LOG_SIMULATION, | 475 | sp_log_msg("eval", SP_LOG_SIMULATION, |
| @@ -481,6 +481,7 @@ ZEND_FUNCTION(eval_blacklist_callback) { | |||
| 481 | current_function_name, filename, line_number); | 481 | current_function_name, filename, line_number); |
| 482 | sp_terminate(); | 482 | sp_terminate(); |
| 483 | } | 483 | } |
| 484 | efree(filename); | ||
| 484 | } | 485 | } |
| 485 | 486 | ||
| 486 | whitelisted: | 487 | whitelisted: |
