[ http://issues.apache.org/jira/browse/AXIS2C-303?page=all ]

Dumindu Pallewela updated AXIS2C-303:
-------------------------------------

    Attachment: thread_mutex_free

Certain functions in conf_ctx.c calls axis2_thread_mutex_unlock (which in turn 
calls pthread_mutex_unlock) on the same mutex twice. Behaviour of  
pthread_mutex_unlock on an already unlocked mutex is undefined.

Attached patch fixes this problem. It also makes the memory leak reported by 
valgrind to dissapear.

Please review and apply the patch.

Thank you,
Dumindu.

> axis2_thread_mutex_destroy returns failure on destroying mutexes
> ----------------------------------------------------------------
>
>                 Key: AXIS2C-303
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-303
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: Current (Nightly)
>         Environment: pthreads
>            Reporter: Dumindu Pallewela
>         Attachments: thread_mutex_free
>
>
> The call to axis2_thread_mutex_destroy fails due to the failure occured in 
> pthread_mutex_destroy in thread_unix.c:axis2_thread_mutex_destroy. Hence the 
> memory allocated for the mutex is also not free'd.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to