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 [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4283D1C4 for ; Wed, 14 Nov 2012 13:16:12 +0000 (UTC) Received: (qmail 62303 invoked by uid 500); 14 Nov 2012 13:16:12 -0000 Delivered-To: apmail-axis-c-dev-archive@axis.apache.org Received: (qmail 62250 invoked by uid 500); 14 Nov 2012 13:16:12 -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 62235 invoked by uid 99); 14 Nov 2012 13:16:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Nov 2012 13:16:12 +0000 Date: Wed, 14 Nov 2012 13:16:12 +0000 (UTC) From: "Alex Mantaut (JIRA)" To: c-dev@axis.apache.org Message-ID: <1382646557.113679.1352898972514.JavaMail.jiratomcat@arcas> In-Reply-To: <1723967400.39421.1338904403546.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (AXIS2C-1596) Memory leaks in src/core/transport/http/util/http_transport_utils.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-1596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13497081#comment-13497081 ] Alex Mantaut commented on AXIS2C-1596: -------------------------------------- Ivan, can you add a test file to reproduce those leaks? > Memory leaks in src/core/transport/http/util/http_transport_utils.c > ------------------------------------------------------------------- > > Key: AXIS2C-1596 > URL: https://issues.apache.org/jira/browse/AXIS2C-1596 > Project: Axis2-C > Issue Type: Bug > Components: transport/http > Affects Versions: Current (Nightly) > Reporter: Ivan Pechorin > Attachments: axis2-c-http_transport_utils.diff > > > There are 3 memory leaks in src/core/transport/http/util/http_transport_utils.c (current SVN trunk): > 1) query_str is allocated via axutil_strdup() at http_transport_utils.c:1488, but never freed. Should be freed in the end of axis2_http_transport_utils_get_request_params() > 5 bytes leaked at 0x6000000001419300 (0.06% of all bytes leaked) > #0 axutil_allocator_malloc_impl() at allocator.c:99 > #1 axutil_strdup() at string.c:267 > #2 axis2_http_transport_utils_get_request_params() at http_transport_utils.c:1488 > #3 axis2_http_worker_process_request() at http_worker.c:484 > 2) A string is allocated by axutil_hash_first() at http_transport_utils.c:1827, but it is not freed. > 96 bytes leaked in 3 blocks (0.37% of all bytes leaked) > These range in size from 32 to 32 bytes and are allocated > #0 axutil_allocator_malloc_impl() at allocator.c:99 > #1 axutil_hash_first() at hash.c:159 > #2 axis2_http_transport_utils_get_services_static_wsdl() at http_transport_utils.c:1827 > #3 axis2_http_worker_process_request() at http_worker.c:563 > 3) axutil_parse_request_url_for_svc_and_op() allocates and returns three chunks of memory that are never freed when called from axis2_http_transport_utils_get_services_static_wsdl() at http_transport_utils.c:1810 > 48 bytes leaked in 3 blocks (0.18% of all bytes leaked) > These range in size from 16 to 16 bytes and are allocated > #0 axutil_allocator_malloc_impl() at allocator.c:99 > #1 axutil_parse_request_url_for_svc_and_op() at utils.c:407 > #2 axis2_http_transport_utils_get_services_static_wsdl() at http_transport_utils.c:1810 > #3 axis2_http_worker_process_request() at http_worker.c:563 > 48 bytes leaked in 3 blocks (0.18% of all bytes leaked) > These range in size from 16 to 16 bytes and are allocated > #0 axutil_allocator_malloc_impl() at allocator.c:99 > #1 axutil_strdup() at string.c:267 > #2 axutil_parse_request_url_for_svc_and_op() at utils.c:454 > #3 axis2_http_transport_utils_get_services_static_wsdl() at http_transport_utils.c:1810 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org For additional commands, e-mail: c-dev-help@axis.apache.org