]> git.notmuchmail.org Git - notmuch/commit - lib/open.cc
lib/open: fix leaks calling _trial_open
authorDavid Bremner <david@tethera.net>
Sat, 27 Mar 2021 12:12:28 +0000 (09:12 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 27 Mar 2021 12:12:28 +0000 (09:12 -0300)
commit4a8d67e357ff9bfe6ab7612ba052b72b9dcffa3f
treedd3a131dc8c22ed1f10ebeee270c28654006abbc
parent4e209ca99ac8084a357c6fc8d7773f6207cfa16d
lib/open: fix leaks calling _trial_open

_trial_open can't know if the PATH_ERROR return value will cause the
error message to be returned from the library, so it's up the caller
to clean up if not.
lib/open.cc