From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13748 invoked by alias); 29 Oct 2006 18:54:59 -0000 Received: (qmail 13740 invoked by uid 22791); 29 Oct 2006 18:54:59 -0000 X-Spam-Check-By: sourceware.org Received: from outhub4.tibco.com (HELO outhub4.tibco.com) (63.100.100.170) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 29 Oct 2006 18:54:56 +0000 Received: from na-h-inhub2.tibco.com (tibco-5.tibco.com [63.100.100.5]) by outhub4.tibco.com (8.12.10/8.12.9) with ESMTP id k9TIsjpr019434; Sun, 29 Oct 2006 10:54:45 -0800 (PST) Received: from NA-PA-VBE02.na.tibco.com (na-pa-be03.tibco.com [10.106.136.123]) by na-h-inhub2.tibco.com (8.13.6/8.13.6) with ESMTP id k9TIsjb0010538; Sun, 29 Oct 2006 10:54:45 -0800 (PST) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Memory leak with detached threads Date: Sun, 29 Oct 2006 18:54:00 -0000 Message-ID: <5D819E730A717F47BC9B256CCE55297001C410D3@NA-PA-VBE02.na.tibco.com> From: "Stephen Croall" To: "Giuliano Catrambone" Cc: X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00055.txt.bz2 Hi, You aren't freeing the handle to the created thread :) If you aren't interested in using the handle later on call pthread_detach() to free the resources for the thread handle.=20=20 Steve. --=20 J. Architect/Principal Engineer, Tibco Software Ltd. T. +44 (0) 1792 360773 M. +44 (0) 7788 971394 E. scroall@tibco.com W. www.tibco.com =20 > -----Original Message----- > From: pthreads-win32-owner@sourceware.org=20 > [mailto:pthreads-win32-owner@sourceware.org] On Behalf Of=20 > Giuliano Catrambone > Sent: 29 October 2006 19:43 > To: pthreads-win32@sources.redhat.com > Subject: Memory leak with detached threads >=20 > Hi all, > I found a memory leak working with detached threads. > I just made a simple C code to demonstrate where I have=20 > the memory leak. >=20 > Running the attached C code I saw about 4KB of memory=20 > leak every 20=20 > iteration. >=20 > I'm using pthreads-dll-2005-03-08. >=20 > Could you tell me if I'm wronging something or if it is a bug? > Thanks in advance > giu >=20 > --=20 > ----------------------------------------------------------------- > Giuliano Catrambone > Director, Professional Services >=20 > Open source projects: > http://sourceforge.net/projects/catralibraries/ > http://sourceforge.net/projects/openstreaming/ >=20 > CatraSoftware: > Home page: http://www.catrasoftware.it >=20 > Streaming page: > http://www.catrasoftware.it/Streaming/CatraStreamingPlatform.htm >=20 > Mobile +39.393.8816655 > Fixed: +39.02.90377228 > Skype: Catrambone Giuliano > msn: giulianocatrambone@hotmail.com > Jabber: giuliano.catrambone@Jabber.org > Yahoo: giuliano.catrambone > ----------------------------------------------------------------- >=20 >=20 >=20