Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 83157 invoked from network); 17 Jan 2008 06:19:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2008 06:19:50 -0000 Received: (qmail 12971 invoked by uid 500); 17 Jan 2008 06:19:40 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 12741 invoked by uid 500); 17 Jan 2008 06:19:40 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 12730 invoked by uid 500); 17 Jan 2008 06:19:40 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 12727 invoked by uid 99); 17 Jan 2008 06:19:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jan 2008 22:19:40 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Jan 2008 06:19:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 22F041A9832; Wed, 16 Jan 2008 22:19:27 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r612726 - /webservices/axis2/trunk/c/src/core/description/op.c Date: Thu, 17 Jan 2008 06:19:24 -0000 To: axis2-cvs@ws.apache.org From: damitha@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080117061927.22F041A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: damitha Date: Wed Jan 16 22:19:14 2008 New Revision: 612726 URL: http://svn.apache.org/viewvc?rev=612726&view=rev Log: Fixing memory leak in wsa_mapping_list by freeing it's string elements when freeing the array Modified: webservices/axis2/trunk/c/src/core/description/op.c Modified: webservices/axis2/trunk/c/src/core/description/op.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/src/core/description/op.c?rev=612726&r1=612725&r2=612726&view=diff ============================================================================== --- webservices/axis2/trunk/c/src/core/description/op.c (original) +++ webservices/axis2/trunk/c/src/core/description/op.c Wed Jan 16 22:19:14 2008 @@ -227,6 +227,16 @@ } if (op->wsamapping_list) { + int i = 0; + int size = 0; + size = axutil_array_list_size(op->wsamapping_list, env); + for(i = 0; i < size; i++) + { + axis2_char_t *temp_str = axutil_array_list_get(op->wsamapping_list, + env, i); + if(temp_str) + AXIS2_FREE(env->allocator, temp_str); + } axutil_array_list_free(op->wsamapping_list, env); } @@ -1235,6 +1245,16 @@ if (op->wsamapping_list) { + int i = 0; + int size = 0; + size = axutil_array_list_size(op->wsamapping_list, env); + for(i = 0; i < size; i++) + { + axis2_char_t *temp_str = axutil_array_list_get(op->wsamapping_list, + env, i); + if(temp_str) + AXIS2_FREE(env->allocator, temp_str); + } axutil_array_list_free(op->wsamapping_list, env); op->wsamapping_list = NULL; } --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org