Skip to content

Commit a1dbe2e

Browse files
committed
chore(agent): remove unnecessary code
1 parent da0860e commit a1dbe2e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

agent/fw_cakephp.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ NR_PHP_WRAPPER_END
274274
*/
275275
NR_PHP_WRAPPER(nr_cakephp_error_handler_wrapper) {
276276
zval* exception = NULL;
277-
char* request_uri
278-
= nr_strdup(nr_php_get_server_global("REQUEST_URI" TSRMLS_CC));
279277

280278
NR_UNUSED_SPECIALFN;
281279
(void)wraprec;
@@ -296,12 +294,11 @@ NR_PHP_WRAPPER(nr_cakephp_error_handler_wrapper) {
296294
nrl_verbosedebug(NRL_FRAMEWORK, "%s: unable to record exception", __func__);
297295
}
298296

299-
nr_txn_set_path("CakePHP", NRPRG(txn), request_uri, NR_PATH_TYPE_ACTION,
297+
nr_txn_set_path("CakePHP", NRPRG(txn), nr_php_get_server_global("REQUEST_URI"), NR_PATH_TYPE_ACTION,
300298
NR_NOT_OK_TO_OVERWRITE);
301299

302300
end:
303301
nr_php_arg_release(&exception);
304-
nr_free(request_uri);
305302
}
306303
NR_PHP_WRAPPER_END
307304

0 commit comments

Comments
 (0)