File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -382,21 +382,21 @@ static inline void nr_php_amqplib_insert_dt_headers(zval* amqp_msg) {
382
382
key_exists
383
383
= nr_php_zend_hash_find (HASH_OF (amqp_table_data ), ZSTR_VAL (key_str ));
384
384
if (NULL == key_exists ) {
385
+ /* Key doesn't exist, so set the value in the AMQPTable. */
386
+
385
387
/* key_str is a zend_string. It needs to be a zval to pass to
386
388
* nr_php_call. */
387
389
ZVAL_STR_COPY (& key_zval_zpd , key_str );
388
- /* Key doesn't exist, so set the value in the AMQPTable. */
389
390
retval_set_table_zvf
390
391
= nr_php_call (amqp_headers_table , "set" , & key_zval_zpd , val );
391
-
392
+ zval_ptr_dtor ( & key_zval_zpd );
392
393
if (NULL == retval_set_table_zvf ) {
393
394
nrl_verbosedebug (NRL_INSTRUMENT ,
394
395
"%s didn't exist in the AMQPTable, but couldn't "
395
396
"set the key/val to the table." ,
396
- NRSAFESTR (Z_STRVAL ( key_zval_zpd )));
397
+ NRSAFESTR (ZSTR_VAL ( key_str )));
397
398
}
398
399
nr_php_zval_free (& retval_set_table_zvf );
399
- zval_ptr_dtor (& key_zval_zpd );
400
400
}
401
401
}
402
402
}
You can’t perform that action at this time.
0 commit comments