Skip to content

Commit

Permalink
free zvals returned by nr_php_call
Browse files Browse the repository at this point in the history
  • Loading branch information
lavarou committed Apr 11, 2024
1 parent 233d0f2 commit 3bddfdf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions agent/fw_yii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 3bddfdf

Please sign in to comment.