From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MC+YNVMKdGFhiAAAgWs5BA (envelope-from ) for ; Sat, 23 Oct 2021 15:12:51 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4EZNMVMKdGG2LwAAbx9fmQ (envelope-from ) for ; Sat, 23 Oct 2021 13:12:51 +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) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3FF607E2A for ; Sat, 23 Oct 2021 15:12:51 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 380C92C1AD; Sat, 23 Oct 2021 09:12:48 -0400 (EDT) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by mail.notmuchmail.org (Postfix) with ESMTPS id 6E8442C1A3 for ; Sat, 23 Oct 2021 09:12:45 -0400 (EDT) Received: by mail-qk1-x735.google.com with SMTP id r15so7188725qkp.8 for ; Sat, 23 Oct 2021 06:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austinray-io.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=cOJoNmK0ivi6Z+sDyJxPvv9ahk+gWyJm/01yX34XXd4=; b=OzRE4GNXuhfrZRlewNuGEBNxOyjw7BKyvdMBrgR3Nj9Od+tCElKelY//RaU9r7Yre+ ikO9CNsKkzPHJLdP/74ZEiNqD/fbxUCJ0BsN6GnPzM+E631I9V9KVJIT5FCKhqWvpJ3S ZRDDF6XUfKY2h4NYyETUyHhNQzY3pvFqUj9UjUggLX5rPLMjvwjp+Fht/aECZCcJHyz2 D/7jp1oThvgWvZYXHHnogLsJHvsYIQjKkKENbEuqjoS/dN/YBVCI5awwC0hCU6Og6tHT XPMQHGuT7zgLv3rNvezJZ3C+rxQM6BXYMQs0JuBiltnnJm0FOgoOXCFqHZcpxL9Es/Jg YKbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=cOJoNmK0ivi6Z+sDyJxPvv9ahk+gWyJm/01yX34XXd4=; b=KknPenUaFVtJs0Fg9Ko16sZ+P4kYyjYu7p+IOHIPVlXJ1H3X6vd5sXZe6sXwKY9WmO k6Uv9hHKgukGsC5UGsBWRE2fqVhNeRqOIjUN+q8Jm+Ilgz7YTO8kjQbMzESx60QrOZrb uQYGqV06MyTX3u4ko8PdAGe92QNwoIEPjTm04FENHnCHqLJdWK9yYRSfyli3r8sXGeGI 4hChJwMwDVDS3v9NvhAnQe3WGLTsWvBwDLsBMqvlUvc4GbSEzoiWICS9qzI10Fnul8nS 9Xr7ye/9ccAhQWzqdLu5F7w9urkBd7itef8+CWpVpfAU1JTrmhHB41I/WLum/S6VmtMu wDDg== X-Gm-Message-State: AOAM530KGe+2Q38onuKy8GB2AXmpBxhgEQdDUHqd1tvlNMv6mKXCKTDl 9bRe1hHhEphL08Dxa4LYIYRDDw== X-Google-Smtp-Source: ABdhPJxQF5FJscmRQPOOsxB+BDsApeHTI2giB2QkMgXGBGHhscGGnrTWCiePzj2t3rmTZJ7Ja0GJhQ== X-Received: by 2002:a37:9906:: with SMTP id b6mr4747903qke.488.1634994764717; Sat, 23 Oct 2021 06:12:44 -0700 (PDT) Received: from localhost (68-20-11-88.lightspeed.rlghnc.sbcglobal.net. [68.20.11.88]) by smtp.gmail.com with ESMTPSA id w17sm5690939qts.53.2021.10.23.06.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Oct 2021 06:12:44 -0700 (PDT) Date: Sat, 23 Oct 2021 09:12:43 -0400 From: Austin Ray To: David Bremner Subject: Re: WIP fixes for nulling of database argument on error Message-ID: <20211023131243.tirmjrtctprcjpcm@athena> References: <20211023042225.xt36nzpsukqs6kid@athena> <20211023092451.1403141-1-david@tethera.net> MIME-Version: 1.0 In-Reply-To: <20211023092451.1403141-1-david@tethera.net> Message-ID-Hash: QUYULZM3TQOR5IMRAE4ROTMRRCEEVIIH X-Message-ID-Hash: QUYULZM3TQOR5IMRAE4ROTMRRCEEVIIH X-MailFrom: austin@austinray.io 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 CC: notmuch@notmuchmail.org 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: multipart/mixed; boundary="===============8990074503765015616==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634994771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AITq8Dre4dody6qZty7MRpCB2fiLqhwoUM8TziV+7+c=; b=ipcWjHzrQ/458jMCk88KhgO8N8VlrdVnEyUJwT177pvTeD3EPRN4yrw0eHGIGISOGkUz9Q 7A3z2bbKyLY9FYntT/6n8+YVaJu9L/3M42eG/qpubxG3ekDCzeIpudSISdAHxQu0TvdNmJ PPB/GyPG/aN8sNHfwaWqK8YC5+5I+ICeShdKAblcYM953f7wGlnbVFeSy3WDuHfzBpw/5A qtrko8l8cAZOCxTw3/rDyoZfOSPJNjpaDudx47V6dXEdScTvERMW0JJHLa32MP0bNvcz16 S+m2YUlxR1YyZeVrkbQKJN7NFxvLJGWAatNUYYqe8xOkK/Qwt6G2yA+kB+9VjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634994771; a=rsa-sha256; cv=none; b=H8Jr5VdbBOHCB8EiGQ0grC0y/jBAjSSecSdXfOilEQgAl+p64CsurpzAtYN+ZSBr8I8yUJ HDDr7JHJh1l8dgdck9e+ibjRmcLQ3HU+RAwOhOpAP1gRZGxfBlS0mYQG1+ePiytIvcyQoL UtrBYQsU+fQ8dKzeRSdfnO6uGpHjWgW+T9H1VcP2tCqOQIisQ+uKnbJmFByvPI7utMCZfL FXHOtkNo6Mq19v6C+XdnwpSkwxbrdvHLuGNFy1FueY3BbrVuhp8oy1Ye3W2Zqxf+xPDjbg ZBaM1HxVZ8th6xQsaRiffEK/f56/UBm2PPtLyYYmVqxzBTsjLSi7pfaqo++rkA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=austinray-io.20210112.gappssmtp.com header.s=20210112 header.b=OzRE4GNX; 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-Migadu-Spam-Score: -2.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=austinray-io.20210112.gappssmtp.com header.s=20210112 header.b=OzRE4GNX; 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-Migadu-Queue-Id: 3FF607E2A X-Spam-Score: -2.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: 9ZU9ix9uW+mZ --===============8990074503765015616== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="v2gvnqitvgl4depr" Content-Disposition: inline --v2gvnqitvgl4depr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi David, This resolves both the non-NULL pointer and memory leak reported by ASAN. Thanks! Austin --=20 https://austinray.io Open Source Maintainer, Software Engineer, Keyboard Enthusiast GPG: 0127 ED83 B939 CCC9 8082 476E 1AA0 B115 C8AC 2C9E --v2gvnqitvgl4depr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTaYk66K9eIYbyUx+6J1sK5lQPcSQUCYXQKSwAKCRCJ1sK5lQPc SVmhAP9QUEKB4TJoM7Eoi7m1vVIBUR0sso8Ni4Dc1nLbYVG5RgD/Wm3LA9Ttl6wI ToFMcsXaxvy0hI0lXnO0zEJzJbmGiQg= =gd3E -----END PGP SIGNATURE----- --v2gvnqitvgl4depr-- --===============8990074503765015616== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============8990074503765015616==--