1 Return-Path: <felipe.contreras@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 1AA48431FD2
\r
6 for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:40 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id DYhJbRycu0zX for <notmuch@notmuchmail.org>;
\r
17 Mon, 30 Sep 2013 09:34:31 -0700 (PDT)
\r
18 Received: from mail-oa0-f53.google.com (mail-oa0-f53.google.com
\r
19 [209.85.219.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id D6AEF431FC3
\r
22 for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:31 -0700 (PDT)
\r
23 Received: by mail-oa0-f53.google.com with SMTP id i7so3914738oag.12
\r
24 for <notmuch@notmuchmail.org>; Mon, 30 Sep 2013 09:34:31 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=from:to:cc:subject:date:message-id:in-reply-to:references;
\r
27 bh=yW+raQgoZF48FtmFumIJgRnlD9NH5puf6iM9+tUDtF4=;
\r
28 b=LEoI0LvJ9QZCCA3ZMK1dRf14tYTcQLhDBxlVZIjNg0unj7tJqyBhVTXB57L+aSOJTJ
\r
29 VZRl4C/raEgS6W4pFVT4b2Y4zAUH8liHGTZZrF8AkoTn+csCrQA37iKJhhA6DN2z8sI2
\r
30 kUTPeQl/Gt2EbQXHRi16eS3MTngT38cUrpWvZBsmBJl2O6A/sQgDeYmY+JTcQrSyzHUA
\r
31 EYChYz/BMZ/UsnUahrbIP9GAj46lWbE2bI3xRfY/S5MJWmXp5fg3Ompj/wVhUfRm+Y6c
\r
32 eg/voDh4fU2AtGwoa6pu54FbPCbZ0YCMblH4L58qFkwicnwbq3M1iNNxxK1MxyxWeVY8
\r
34 X-Received: by 10.60.160.197 with SMTP id xm5mr1403948oeb.53.1380558871445;
\r
35 Mon, 30 Sep 2013 09:34:31 -0700 (PDT)
\r
36 Received: from localhost (187-162-140-241.static.axtel.net. [187.162.140.241])
\r
37 by mx.google.com with ESMTPSA id
\r
38 rl1sm1967045oeb.7.1969.12.31.16.00.00
\r
39 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
\r
40 Mon, 30 Sep 2013 09:34:30 -0700 (PDT)
\r
41 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
42 To: notmuch@notmuchmail.org
\r
43 Subject: [PATCH 1/3] query: bind queries to database objects
\r
44 Date: Mon, 30 Sep 2013 11:28:41 -0500
\r
45 Message-Id: <1380558523-6913-2-git-send-email-felipe.contreras@gmail.com>
\r
46 X-Mailer: git-send-email 1.8.4-fc
\r
47 In-Reply-To: <1380558523-6913-1-git-send-email-felipe.contreras@gmail.com>
\r
48 References: <1380558523-6913-1-git-send-email-felipe.contreras@gmail.com>
\r
49 X-BeenThere: notmuch@notmuchmail.org
\r
50 X-Mailman-Version: 2.1.13
\r
52 List-Id: "Use and development of the notmuch mail system."
\r
53 <notmuch.notmuchmail.org>
\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
57 List-Post: <mailto:notmuch@notmuchmail.org>
\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
60 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
61 X-List-Received-Date: Mon, 30 Sep 2013 16:34:40 -0000
\r
63 The queries don't really work after a database is closed, and we would
\r
64 like them to be freed if the database is destroyed.
\r
66 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
69 1 file changed, 1 insertion(+), 1 deletion(-)
\r
71 diff --git a/lib/query.cc b/lib/query.cc
\r
72 index 69668a4..ec60e2e 100644
\r
75 @@ -80,7 +80,7 @@ notmuch_query_create (notmuch_database_t *notmuch,
\r
76 if (_debug_query ())
\r
77 fprintf (stderr, "Query string is:\n%s\n", query_string);
\r
79 - query = talloc (NULL, notmuch_query_t);
\r
80 + query = talloc (notmuch, notmuch_query_t);
\r
81 if (unlikely (query == NULL))
\r