Skip to content

Commit 5a0f2ff

Browse files
committed
try fix leak
1 parent 014993e commit 5a0f2ff

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

coord/src/dist_aggregate.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,9 @@ static int rpnetNext(ResultProcessor *self, SearchResult *r) {
396396
|| nc->areq->reqConfig.timeoutPolicy == TimeoutPolicy_Fail) {
397397
QueryError_SetError(nc->areq->qiter.err, QUERY_EGENERIC, strErr);
398398
return RS_RESULT_ERROR;
399+
} else {
400+
MRReply_Free(nc->current.root);
401+
RPNet_resetCurrent(nc);
399402
}
400403
}
401404

0 commit comments

Comments
 (0)