You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Ed Slattery (JIRA)" <ji...@apache.org> on 2006/01/30 15:23:33 UTC
[jira] Created: (AXIS2C-44) Freeing of guththila stacks appears to
free the last entry twice
Freeing of guththila stacks appears to free the last entry twice
----------------------------------------------------------------
Key: AXIS2C-44
URL: http://issues.apache.org/jira/browse/AXIS2C-44
Project: Axis2-C
Type: Bug
Components: Pull Parser - Guththila
Environment: windows
Reporter: Ed Slattery
Freeing of stacks is trying to free the last element twice - this fixes that.
GUTHTHILA_DECLARE (void)
guththila_stack_free_rec (guththila_environment_t * environment,
guththila_stack_t * stack,
guththila_element_t * elem)
{
if (elem->prev == NULL)
{
GUTHTHILA_FREE (environment->allocator, elem);
}
else
{
/*- elem = elem->prev;*/
/*- guththila_stack_free_rec (environment, stack, elem); */
/*+*/guththila_stack_free_rec (environment, stack, elem->prev);
GUTHTHILA_FREE (environment->allocator, elem);
}
}
GUTHTHILA_DECLARE (void)
guththila_stack_free (guththila_environment_t * environment,
guththila_stack_t * stack)
{
if (stack && (stack->pointer > 0))
{
guththila_element_t *ele = stack->tail;
guththila_stack_free_rec (environment, stack, ele);
/*- GUTHTHILA_FREE (environment->allocator, ele);*/
GUTHTHILA_FREE (environment->allocator, stack);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS2C-44) Freeing of guththila stacks appears
to free the last entry twice
Posted by "Ed Slattery (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-44?page=comments#action_12365540 ]
Ed Slattery commented on AXIS2C-44:
-----------------------------------
Applied a fix for this
> Freeing of guththila stacks appears to free the last entry twice
> ----------------------------------------------------------------
>
> Key: AXIS2C-44
> URL: http://issues.apache.org/jira/browse/AXIS2C-44
> Project: Axis2-C
> Type: Bug
> Components: Pull Parser - Guththila
> Environment: windows
> Reporter: Ed Slattery
>
> Freeing of stacks is trying to free the last element twice - this fixes that.
> GUTHTHILA_DECLARE (void)
> guththila_stack_free_rec (guththila_environment_t * environment,
> guththila_stack_t * stack,
> guththila_element_t * elem)
> {
> if (elem->prev == NULL)
> {
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> else
> {
> /*- elem = elem->prev;*/
> /*- guththila_stack_free_rec (environment, stack, elem); */
> /*+*/guththila_stack_free_rec (environment, stack, elem->prev);
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> }
> GUTHTHILA_DECLARE (void)
> guththila_stack_free (guththila_environment_t * environment,
> guththila_stack_t * stack)
> {
> if (stack && (stack->pointer > 0))
> {
> guththila_element_t *ele = stack->tail;
> guththila_stack_free_rec (environment, stack, ele);
> /*- GUTHTHILA_FREE (environment->allocator, ele);*/
> GUTHTHILA_FREE (environment->allocator, stack);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (AXIS2C-44) Freeing of guththila stacks appears to
free the last entry twice
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-44?page=all ]
Samisa Abeysinghe reassigned AXIS2C-44:
---------------------------------------
Assignee: Dinesh Premalal
> Freeing of guththila stacks appears to free the last entry twice
> ----------------------------------------------------------------
>
> Key: AXIS2C-44
> URL: http://issues.apache.org/jira/browse/AXIS2C-44
> Project: Axis2-C
> Issue Type: Bug
> Components: guththila
> Environment: windows
> Reporter: Ed Slattery
> Assigned To: Dinesh Premalal
>
> Freeing of stacks is trying to free the last element twice - this fixes that.
> GUTHTHILA_DECLARE (void)
> guththila_stack_free_rec (guththila_environment_t * environment,
> guththila_stack_t * stack,
> guththila_element_t * elem)
> {
> if (elem->prev == NULL)
> {
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> else
> {
> /*- elem = elem->prev;*/
> /*- guththila_stack_free_rec (environment, stack, elem); */
> /*+*/guththila_stack_free_rec (environment, stack, elem->prev);
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> }
> GUTHTHILA_DECLARE (void)
> guththila_stack_free (guththila_environment_t * environment,
> guththila_stack_t * stack)
> {
> if (stack && (stack->pointer > 0))
> {
> guththila_element_t *ele = stack->tail;
> guththila_stack_free_rec (environment, stack, ele);
> /*- GUTHTHILA_FREE (environment->allocator, ele);*/
> GUTHTHILA_FREE (environment->allocator, stack);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Closed: (AXIS2C-44) Freeing of guththila stacks appears to
free the last entry twice
Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-44?page=all ]
Dinesh Premalal closed AXIS2C-44.
---------------------------------
Resolution: Fixed
Ed has fixed this
> Freeing of guththila stacks appears to free the last entry twice
> ----------------------------------------------------------------
>
> Key: AXIS2C-44
> URL: http://issues.apache.org/jira/browse/AXIS2C-44
> Project: Axis2-C
> Issue Type: Bug
> Components: guththila
> Environment: windows
> Reporter: Ed Slattery
> Assigned To: Dinesh Premalal
>
> Freeing of stacks is trying to free the last element twice - this fixes that.
> GUTHTHILA_DECLARE (void)
> guththila_stack_free_rec (guththila_environment_t * environment,
> guththila_stack_t * stack,
> guththila_element_t * elem)
> {
> if (elem->prev == NULL)
> {
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> else
> {
> /*- elem = elem->prev;*/
> /*- guththila_stack_free_rec (environment, stack, elem); */
> /*+*/guththila_stack_free_rec (environment, stack, elem->prev);
> GUTHTHILA_FREE (environment->allocator, elem);
> }
> }
> GUTHTHILA_DECLARE (void)
> guththila_stack_free (guththila_environment_t * environment,
> guththila_stack_t * stack)
> {
> if (stack && (stack->pointer > 0))
> {
> guththila_element_t *ele = stack->tail;
> guththila_stack_free_rec (environment, stack, ele);
> /*- GUTHTHILA_FREE (environment->allocator, ele);*/
> GUTHTHILA_FREE (environment->allocator, stack);
> }
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org