https://issues.apache.org/bugzilla/show_bug.cgi?id=45086

           Summary: (reslist_cleanup.c) A potential bug discovered by a
                    static program analysis approach
           Product: Apache httpd-2
           Version: 2.2.8
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


File Name: /srclib/apr-util/misc/apr_reslist.c
Function Name: reslist_cleanup()
Buggy Code:

   144:     apr_thread_mutex_lock(rl->listlock);
   145: 
   146:     while (rl->nidle > 0) {
   147:         res = pop_resource(rl);
   148:         rl->ntotal--;
   149:         rv = destroy_resource(rl, res);
   150:         if (rv != APR_SUCCESS) 
   151:             return rv; 
             // the execution of apr_thread_mutex_unlock() is missed. 

Description: We found a rule requiring that apr_thread_mutex_unlock() be called
after the execution of apr_thread_mutex_lock(). The call of
apr_thread_mutex_unlock() is missed in the above code.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to