Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 80557 invoked from network); 24 Mar 2006 09:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2006 09:05:35 -0000 Received: (qmail 94080 invoked by uid 500); 24 Mar 2006 09:05:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 94005 invoked by uid 500); 24 Mar 2006 09:05:32 -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 93993 invoked by uid 500); 24 Mar 2006 09:05:32 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 93990 invoked by uid 99); 24 Mar 2006 09:05:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 01:05:32 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 24 Mar 2006 01:05:31 -0800 Received: (qmail 80098 invoked by uid 65534); 24 Mar 2006 09:05:11 -0000 Message-ID: <20060324090511.80096.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r388466 - /webservices/axis2/trunk/c/modules/core/description/param.c Date: Fri, 24 Mar 2006 09:05:10 -0000 To: axis2-cvs@ws.apache.org From: samisa@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: samisa Date: Fri Mar 24 01:05:10 2006 New Revision: 388466 URL: http://svn.apache.org/viewcvs?rev=388466&view=rev Log: Fixed param value free Modified: webservices/axis2/trunk/c/modules/core/description/param.c Modified: webservices/axis2/trunk/c/modules/core/description/param.c URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/description/param.c?rev=388466&r1=388465&r2=388466&view=diff ============================================================================== --- webservices/axis2/trunk/c/modules/core/description/param.c (original) +++ webservices/axis2/trunk/c/modules/core/description/param.c Fri Mar 24 01:05:10 2006 @@ -175,8 +175,21 @@ axis2_env_t **env, void *value) { + void *param_value = NULL; AXIS2_ENV_CHECK(env, AXIS2_FAILURE); + param_value = axis2_param_get_value(param, env); + if(param_value) + { + if(param->ops && param->ops->value_free) + { + param->ops->value_free(param_value, env); + } + else /* we assume that param value is axis2_char_t* */ + { + AXIS2_FREE((*env)->allocator, param_value); + } + } AXIS2_INTF_TO_IMPL(param)->value = value; return AXIS2_SUCCESS; }