From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24942 invoked by alias); 17 Jul 2005 21:34:44 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 24933 invoked by uid 22791); 17 Jul 2005 21:34:40 -0000 Received: from advmail.lsn.net (HELO advmail.lsn.net) (66.90.138.148) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 17 Jul 2005 21:34:40 +0000 Received: from [216.82.214.108] (216-82-214-108.dyn.grandenetworks.net [216.82.214.108]) by advmail.lsn.net (8.12.8/8.12.4) with ESMTP id j6HLYi6u000361 for ; Sun, 17 Jul 2005 16:34:45 -0500 Message-ID: <42DACD46.3090308@advantexmail.net> Date: Sun, 17 Jul 2005 21:34:00 -0000 From: John Paul King User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) MIME-Version: 1.0 To: ecos-discuss@sources.redhat.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Grande-Antivirus: Scanned by Vexira Antivirus 1.0.6 - 8.798 Subject: [ECOS] Termios memory leak? X-SW-Source: 2005-07/txt/msg00160.txt.bz2 I've been using eCos w/ termios serial ports, and it seems that each open/close of such devices allocates memory that is never freed. Struct termios_private_info has a member 'errbuf' that is malloc'd in function 'real_termios_init' (packages/io/serial/src/common/termiostty.c), but I never see a corrseponding 'free'. I grep'd through the source, and I haven't seen any actions taken on 'errbuf' (other than allocation within termiostty), so is it even used in eCos? I have temporarily removed the few lines that deal w/ 'errbuf', and my application seems to work properly now, but is this a safe thing to do? -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss