Skip to content

Commit

Permalink
make query clear account for taken_from_loaned_query
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Feb 26, 2025
1 parent 0d10b49 commit 7e3912a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ z_result_t _z_query_send_reply_final(_z_query_t *q) {

void _z_query_clear(_z_query_t *q) {
// Send REPLY_FINAL message
if (_z_query_send_reply_final(q) != _Z_RES_OK) {
if (!_Z_RC_IS_NULL(&q->_zn) && _z_query_send_reply_final(q) != _Z_RES_OK) {
_Z_ERROR("Query send REPLY_FINAL transport failure !");
}
// Clean up memory
Expand Down

0 comments on commit 7e3912a

Please sign in to comment.