We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88da4c4 commit 5bde6d4Copy full SHA for 5bde6d4
agent/php_user_instrument.c
@@ -579,6 +579,15 @@ void nr_php_reset_user_instrumentation(void) {
579
* Remove any transient wraprecs. This must only be called on request shutdown!
580
*/
581
void nr_php_remove_transient_user_instrumentation(void) {
582
+#if ZEND_MODULE_API_NO > ZEND_7_4_X_API_NO
583
+ nruserfn_t* p = nr_transient_wraprecs;
584
+ while (p) {
585
+ nruserfn_t* wraprec = p;
586
+ p = wraprec->next;
587
+ nr_php_user_wraprec_destroy(&wraprec);
588
+ }
589
+ nr_transient_wraprecs = NULL;
590
+#endif
591
#if ZEND_MODULE_API_NO < ZEND_7_4_X_API_NO
592
nruserfn_t* p = nr_wrapped_user_functions;
593
nruserfn_t* prev = NULL;
0 commit comments