From 3bddfdf13b155990977c434457d5f313557f6f99 Mon Sep 17 00:00:00 2001 From: Michal Nowacki Date: Tue, 12 Mar 2024 14:48:17 -0400 Subject: [PATCH] free zvals returned by nr_php_call --- agent/fw_yii.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agent/fw_yii.c b/agent/fw_yii.c index 33782271a..e7fd868a2 100644 --- a/agent/fw_yii.c +++ b/agent/fw_yii.c @@ -76,8 +76,9 @@ NR_PHP_WRAPPER(nr_yii1_runWithParams_wrapper) { NR_NOT_OK_TO_OVERWRITE); } } + nr_php_zval_free(&idz); } - + nr_php_zval_free(&classz); end: NR_PHP_WRAPPER_CALL; @@ -143,7 +144,7 @@ NR_PHP_WRAPPER(nr_yii2_runWithParams_wrapper) { NR_NOT_OK_TO_OVERWRITE); } } - + nr_php_zval_free(&unique_idz); end: NR_PHP_WRAPPER_CALL;