Skip to content

Commit

Permalink
Fix memory leak in fts_flatcurve_xapian_query_iter_next()
Browse files Browse the repository at this point in the history
  • Loading branch information
edieterich authored and slusarz committed Sep 25, 2024
1 parent db9e416 commit bb377db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fts-backend-flatcurve-xapian.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ fts_flatcurve_xapian_query_iter_deinit(struct fts_flatcurve_xapian_query_iter **
* allocated internally. */
*_iter = NULL;
iter->i.~MSetIterator();
iter->m.~MSet();
delete(iter->enquire);
p_free(iter->query->pool, iter->result);
p_free(iter->query->pool, iter);
Expand Down

0 comments on commit bb377db

Please sign in to comment.