From c-dev-return-23497-apmail-axis-c-dev-archive=axis.apache.org@axis.apache.org Tue Apr 7 16:36:02 2020 Return-Path: X-Original-To: apmail-axis-c-dev-archive@www.apache.org Delivered-To: apmail-axis-c-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 7BEE31941E for ; Tue, 7 Apr 2020 16:36:02 +0000 (UTC) Received: (qmail 72882 invoked by uid 500); 7 Apr 2020 16:36:01 -0000 Delivered-To: apmail-axis-c-dev-archive@axis.apache.org Received: (qmail 72860 invoked by uid 500); 7 Apr 2020 16:36:01 -0000 Mailing-List: contact c-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list c-dev@axis.apache.org Received: (qmail 72840 invoked by uid 99); 7 Apr 2020 16:36:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Apr 2020 16:36:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id DDC81E29C3 for ; Tue, 7 Apr 2020 16:36:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 3D77778036A for ; Tue, 7 Apr 2020 16:36:00 +0000 (UTC) Date: Tue, 7 Apr 2020 16:36:00 +0000 (UTC) From: "Bill Blough (Jira)" To: c-dev@axis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AXIS2C-1473) some leaks in thread_unix.c and thread_pool.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AXIS2C-1473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bill Blough updated AXIS2C-1473: -------------------------------- Fix Version/s: 1.7.0 > some leaks in thread_unix.c and thread_pool.c > --------------------------------------------- > > Key: AXIS2C-1473 > URL: https://issues.apache.org/jira/browse/AXIS2C-1473 > Project: Axis2-C > Issue Type: Bug > Components: util > Affects Versions: 1.7.0 > Environment: linux > Reporter: Robert Springer > Priority: Minor > Fix For: 1.7.0 > > > some leaks in thread_unix.c and thread_pool.c: > Index: util/src/platforms/unix/thread_unix.c > =================================================================== > --- util/src/platforms/unix/thread_unix.c (revision 924674) > +++ util/src/platforms/unix/thread_unix.c (working copy) > @@ -112,6 +112,7 @@ > new->td = (pthread_t *)AXIS2_MALLOC(allocator, sizeof(pthread_t)); > if(!new->td) > { > + AXIS2_FREE(allocator, new); > return NULL; > } > > @@ -132,6 +133,8 @@ > { > return new; > } > + AXIS2_FREE(allocator, new->td); > + AXIS2_FREE(allocator, new); > return NULL; > } > > Index: util/src/thread_pool.c > =================================================================== > --- util/src/thread_pool.c (revision 924674) > +++ util/src/thread_pool.c (working copy) > @@ -143,5 +143,10 @@ > { > AXIS2_ERROR_FREE(thread_env->error); > } > + axutil_allocator_t *allocator = NULL; > + allocator = thread_env->allocator; > AXIS2_FREE(thread_env->allocator, thread_env); > + if (allocator) { > + AXIS2_FREE(allocator, allocator); > + } > } -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org For additional commands, e-mail: c-dev-help@axis.apache.org