From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14389 invoked by alias); 10 Sep 2002 11:45:13 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 14381 invoked from network); 10 Sep 2002 11:45:10 -0000 Received: from unknown (HELO web14508.mail.yahoo.com) (216.136.224.71) by sources.redhat.com with SMTP; 10 Sep 2002 11:45:10 -0000 Message-ID: <20020910114509.73572.qmail@web14508.mail.yahoo.com> Received: from [203.195.148.195] by web14508.mail.yahoo.com via HTTP; Tue, 10 Sep 2002 04:45:09 PDT Date: Tue, 10 Sep 2002 04:45:00 -0000 From: pankaj bathwal Subject: cleaning of memory in pthread_create To: pthreads-win32@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002/txt/msg00094.txt.bz2 Hi, This is regarding freeing of resource and cleaning of memory allocated when "pthread_create" is called. Most of my memory leaks tool says 'memory leak of 120 bytes allocated by calloc in "ptw32_new.c"'. Is there any call that will free memory and resources? Or there is some other way? Regards Pankaj This is my sample code. static int washere = 0; void * func(void * arg) { washere = 1; std::cout<<"Inside The THREAD "<