]> Sergey Matveev's repositories - public-inbox.git/commit
lei: clean up pkt_op consumer on exception, too
authorEric Wong <e@80x24.org>
Wed, 24 Mar 2021 09:23:31 +0000 (14:23 +0500)
committerEric Wong <e@80x24.org>
Wed, 24 Mar 2021 23:01:19 +0000 (23:01 +0000)
commitc5b52ce9b026e0a1cd5c32ffade1f08e544f4cdb
tree88bb441da037deb9a7afc1927d11d400018d3e2e
parentd33f1ef680f2e7bce511f1e18d6bb5b24650e17b
lei: clean up pkt_op consumer on exception, too

We need to consistently ensure pkt_op_c doesn't lead to a
long-lived circular reference if an exception is thrown in
pre_augment.  Maybe the API could be better, but this fixes an
FD leak when attempting to --augment a FIFO.

Followup-to: b9524082ba39e665 ("lei_xsearch: cleanup {pkt_op_p} on exceptions")
lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiXSearch.pm