Skip to content

Commit 0f40d6d

Browse files
committed
Amend issue with ref counting
1 parent b9f23a4 commit 0f40d6d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

appsec/src/extension/ddappsec.c

-2
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,6 @@ static PHP_FUNCTION(datadog_appsec_push_addresses)
500500

501501
zval parameters_zv;
502502
ZVAL_ARR(&parameters_zv, addresses);
503-
Z_TRY_ADDREF_P(&parameters_zv);
504503

505504
dd_conn *conn = dd_helper_mgr_cur_conn();
506505
if (conn == NULL) {
@@ -510,7 +509,6 @@ static PHP_FUNCTION(datadog_appsec_push_addresses)
510509
}
511510

512511
dd_result res = dd_request_exec(conn, &parameters_zv, rasp);
513-
zval_ptr_dtor(&parameters_zv);
514512

515513
if (rasp) {
516514
clock_gettime(CLOCK_MONOTONIC_RAW, &end);

0 commit comments

Comments
 (0)