Skip to content

Commit efd6d91

Browse files
committed
move free
1 parent c6ee0c2 commit efd6d91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/php_txn.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,9 +1208,6 @@ static void nr_php_txn_do_shutdown(nrtxn_t* txn TSRMLS_DC) {
12081208
* cannot be configured into the browser client config.
12091209
*/
12101210
nr_php_capture_request_parameters(txn TSRMLS_CC);
1211-
1212-
nr_hashmap_destroy(&NRTXNGLOBAL(mysqli_queries));
1213-
nr_hashmap_destroy(&NRTXNGLOBAL(pdo_link_options));
12141211
}
12151212

12161213
void nr_php_txn_shutdown(TSRMLS_D) {
@@ -1375,6 +1372,9 @@ nr_status_t nr_php_txn_end(int ignoretxn, int in_post_deactivate TSRMLS_DC) {
13751372
nr_hashmap_destroy(&NRTXNGLOBAL(curl_multi_metadata));
13761373

13771374
nr_mysqli_metadata_destroy(&NRTXNGLOBAL(mysqli_links));
1375+
nr_hashmap_destroy(&NRTXNGLOBAL(mysqli_queries));
1376+
1377+
nr_hashmap_destroy(&NRTXNGLOBAL(pdo_link_options));
13781378

13791379
return NR_SUCCESS;
13801380
}

0 commit comments

Comments
 (0)