Skip to content

Commit d602bd1

Browse files
committed
try fix leak
1 parent 8b578b8 commit d602bd1

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
@@ -395,6 +395,9 @@ static int rpnetNext(ResultProcessor *self, SearchResult *r) {
395395
|| nc->areq->reqConfig.timeoutPolicy == TimeoutPolicy_Fail) {
396396
QueryError_SetError(nc->areq->qiter.err, QUERY_EGENERIC, strErr);
397397
return RS_RESULT_ERROR;
398+
} else {
399+
MRReply_Free(nc->current.root);
400+
RPNet_resetCurrent(nc);
398401
}
399402
}
400403

0 commit comments

Comments
 (0)