1 Return-Path: <bremner@unb.ca>
\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 9A394431FBD
\r
6 for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 19:48:13 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id IJ7AQCgWzmlr for <notmuch@notmuchmail.org>;
\r
16 Tue, 14 Feb 2012 19:48:13 -0800 (PST)
\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])
\r
18 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
19 (No client certificate requested)
\r
20 by olra.theworths.org (Postfix) with ESMTPS id E9951431FBC
\r
21 for <notmuch@notmuchmail.org>; Tue, 14 Feb 2012 19:48:12 -0800 (PST)
\r
22 Received: from zancas.localnet
\r
23 (fctnnbsc30w-142166230117.dhcp-dynamic.FibreOp.nb.bellaliant.net
\r
24 [142.166.230.117]) (authenticated bits=0)
\r
25 by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id q1F3lvu2009408
\r
26 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);
\r
27 Tue, 14 Feb 2012 23:47:57 -0400
\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)
\r
29 (envelope-from <bremner@unb.ca>)
\r
30 id 1RxVqW-0003Bd-SV; Tue, 14 Feb 2012 23:47:56 -0400
\r
31 From: David Bremner <david@tethera.net>
\r
32 To: Ethan Glasser-Camp <glasse@cs.rpi.edu>, notmuch@notmuchmail.org
\r
33 Subject: Re: [PATCH] Free the results of scandir()
\r
34 In-Reply-To: <1328609103-7870-1-git-send-email-glasse@cs.rpi.edu>
\r
35 References: <1328609103-7870-1-git-send-email-glasse@cs.rpi.edu>
\r
36 User-Agent: Notmuch/0.11.1+188~ga5674c2 (http://notmuchmail.org) Emacs/23.3.1
\r
37 (x86_64-pc-linux-gnu)
\r
38 Date: Tue, 14 Feb 2012 23:47:56 -0400
\r
39 Message-ID: <871upw3ggj.fsf@zancas.localnet>
\r
41 Content-Type: text/plain; charset=us-ascii
\r
42 Cc: Ethan Glasser-Camp <ethan@betacantrips.com>
\r
43 X-BeenThere: notmuch@notmuchmail.org
\r
44 X-Mailman-Version: 2.1.13
\r
46 List-Id: "Use and development of the notmuch mail system."
\r
47 <notmuch.notmuchmail.org>
\r
48 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
49 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
50 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
51 List-Post: <mailto:notmuch@notmuchmail.org>
\r
52 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
53 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
55 X-List-Received-Date: Wed, 15 Feb 2012 03:48:13 -0000
\r
57 On Tue, 7 Feb 2012 05:05:03 -0500, Ethan Glasser-Camp <glasse@cs.rpi.edu> wrote:
\r
58 > From: Ethan Glasser-Camp <ethan@betacantrips.com>
\r
60 > scandir() returns "strings allocated via malloc(3)" which are then
\r
61 > "collected in array namelist which is allocated via
\r
62 > malloc(3)". Currently we just free the array namelist. Instead, free
\r
63 > all the entries of namelist, and then free namelist.
\r