]> Sergey Matveev's repositories - public-inbox.git/commit
lei_xsearch: cleanup {pkt_op_p} on exceptions
authorEric Wong <e@80x24.org>
Thu, 4 Mar 2021 09:03:13 +0000 (17:03 +0800)
committerEric Wong <e@80x24.org>
Thu, 4 Mar 2021 18:29:39 +0000 (14:29 -0400)
commitb9524082ba39e66516d5422fa141e330f2ffef33
treed30854af4f9f2a1605d33e051aeea68af3ce3dd5
parentd74c4c9c2802b88a627dbc55e8e10cbc57e82b1d
lei_xsearch: cleanup {pkt_op_p} on exceptions

We must ensure pkt_op_p doesn't live beyond the scope of
->do_query in the top-level lei-daemon, otherwise it can leave a
stray socket hanging around in case of exceptions.
lib/PublicInbox/LeiXSearch.pm