From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7552 invoked from network); 12 May 2003 22:03:49 -0000 Received: from unknown (HELO monty-python.gnu.org) (199.232.76.173) by sources.redhat.com with SMTP; 12 May 2003 22:03:49 -0000 Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FLOV-0002x4-01 for listarch-gnats-devel@sources.redhat.com; Mon, 12 May 2003 18:03:39 -0400 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19FLNs-00026Y-00 for help-gnats@gnu.org; Mon, 12 May 2003 18:03:00 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19FLNg-0001jm-00 for help-gnats@gnu.org; Mon, 12 May 2003 18:02:51 -0400 Received: from natint.juniper.net ([207.17.136.129] helo=merlot.juniper.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19FLNf-0001ek-00 for help-gnats@gnu.org; Mon, 12 May 2003 18:02:47 -0400 Received: from juniper.net (snowy.juniper.net [172.17.13.16]) by merlot.juniper.net (8.11.3/8.11.3) with ESMTP id h4CM2ku84859 for ; Mon, 12 May 2003 15:02:46 -0700 (PDT) (envelope-from hatzis@juniper.net) Message-ID: <3EC01A06.8020809@juniper.net> Date: Mon, 12 May 2003 22:03:00 -0000 From: Mel Hatzis User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 X-Accept-Language: en-us, en MIME-Version: 1.0 To: help-gnats@gnu.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: memory leak in client code X-BeenThere: help-gnats@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General discussion about GNU GNATS List-Help: List-Post: List-Subscribe: , List-Archive: Sender: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org Errors-To: help-gnats-bounces+listarch-gnats-devel=sources.redhat.com@gnu.org X-SW-Source: 2003-q2/txt/msg00049.txt.bz2 Please review the patch below which fixes a memory leak with client reads from the server. The memory leak generally results in 'unable to allocate memory' (or 'unable to reallocate memory') errors particularly when a 'query-pr --full' is attempted on a relatively large PR database. -- Mel Hatzis Index: client.c =================================================================== RCS file: /cvsroot/gnats/gnats/gnats/client.c,v retrieving revision 1.46 diff -b -u -p -r1.46 client.c --- client.c 25 Nov 2002 13:58:33 -0000 1.46 +++ client.c 12 May 2003 21:57:58 -0000 @@ -263,6 +263,7 @@ read_server (FILE *outfp) } fprintf (outfp, "%s", recvline + i); } + free (recvline); } } _______________________________________________ Help-gnats mailing list Help-gnats@gnu.org http://mail.gnu.org/mailman/listinfo/help-gnats