Skip to content
Snippets Groups Projects
Commit bd04983a authored by Alexandr Lyapunov's avatar Alexandr Lyapunov Committed by Roman Tsisyk
Browse files

Fix memleak in iproto port, clean and optimize the code

Now if an error happens during the first tuple push from port to
obuf, the port is not actually destroyed - only the first tuple is
unreferenced.

I believe that port dump must not free any data at all, then once
a user creates a port he must take the ownership and destroy it in
the end of usage. That would simplify the user code, especially C++.

Simplify port_dump function and destroy a port in the code that
creates the port.
parent ef7a350a
No related branches found
No related tags found
No related merge requests found
Loading
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