Skip to content
Snippets Groups Projects
Commit 5464435f authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

plugin api: properly free sophia iterator in gc

parent 00cc667e
No related branches found
No related tags found
No related merge requests found
......@@ -490,10 +490,12 @@ box_iterator_next(box_iterator_t *itr, box_tuple_t **result)
}
void
box_iterator_free(box_iterator_t *itr)
box_iterator_free(box_iterator_t *it)
{
if (itr->free)
itr->free(itr);
if (it->close)
it->close(it);
if (it->free)
it->free(it);
}
/* }}} */
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