From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eLQgA7U0Dl9mJAAA0tVLHw (envelope-from ) for ; Tue, 14 Jul 2020 22:41:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id iNckOrQ0Dl9bNAAAB5/wlQ (envelope-from ) for ; Tue, 14 Jul 2020 22:41:56 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 70D8794062D for ; Tue, 14 Jul 2020 22:41:55 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 266B820233; Tue, 14 Jul 2020 18:41:44 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 76C0D1FBDC for ; Tue, 14 Jul 2020 18:41:41 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 9B9915FFD4; Tue, 14 Jul 2020 18:41:39 -0400 (EDT) Received: (nullmailer pid 717927 invoked by uid 1000); Tue, 14 Jul 2020 22:41:22 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: batch 5, API exception handling cleanup Date: Tue, 14 Jul 2020 19:41:15 -0300 Message-Id: <20200714224119.717845-1-david@tethera.net> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Message-ID-Hash: Z65GYGNG2KAJ4EE6FHF36N62TYNDI2TE X-Message-ID-Hash: Z65GYGNG2KAJ4EE6FHF36N62TYNDI2TE X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 1.53 X-TUID: hK0RiucsJOGx This is a followup and extension to id:20200709001709.449217-1-david@tethera.net Since that finished with message.cc, this one starts on database.cc There is one non-boring patch here, namely [PATCH 3/4] lib: move deallocation of memory from n_d_close to n_d_destroy It (of course) passes the test suite, but it represents a non-trivial behaviour change for the few people calling notmuch_database_close directly rather than via notmuch_database_destroy