Skip to content
Snippets Groups Projects
Commit 585cd458 authored by Maria Khaydich's avatar Maria Khaydich Committed by Georgy Kirichenko
Browse files

Iproto call won't leak if transaction isn't committed

In case of throwing client error because of inactive function
we did not destroy used port. It could possibly cause huge
memory leaks as could be seen with top or its analogues when
performing net.box test run in a loop.

Closes #4388

(cherry picked from commit 7691154a)
parent 8e2d5551
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,7 @@ box_process_call(struct call_request *request, struct port *port)
if (txn != NULL) {
diag_set(ClientError, ER_FUNCTION_TX_ACTIVE);
port_destroy(port);
txn_rollback(txn);
fiber_gc();
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment