Skip to content

Commit dc5fa2c

Browse files
committed
free zvals returned by nr_php_call
1 parent d059d1c commit dc5fa2c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

agent/fw_yii.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ NR_PHP_WRAPPER(nr_yii1_runWithParams_wrapper) {
7676
NR_NOT_OK_TO_OVERWRITE);
7777
}
7878
}
79+
nr_php_zval_free(&idz);
7980
}
80-
81+
nr_php_zval_free(&classz);
8182
end:
8283
NR_PHP_WRAPPER_CALL;
8384

@@ -143,7 +144,7 @@ NR_PHP_WRAPPER(nr_yii2_runWithParams_wrapper) {
143144
NR_NOT_OK_TO_OVERWRITE);
144145
}
145146
}
146-
147+
nr_php_zval_free(&unique_idz);
147148
end:
148149
NR_PHP_WRAPPER_CALL;
149150

0 commit comments

Comments
 (0)