apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jwool...@apache.org
Subject cvs commit: apr-util/misc apr_reslist.c
Date Thu, 18 Sep 2003 06:19:58 GMT
jwoolley    2003/09/17 23:19:58

  Modified:    misc     Tag: APU_0_9_BRANCH apr_reslist.c
  Log:
  check return code
  
  Submitted by:    Balazs Mezodi <ameba@bonus.hu>
  Reviewed by:     Paul Querna <chip@force-elite.com>, Cliff Woolley
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.2.2.1   +6 -0      apr-util/misc/apr_reslist.c
  
  Index: apr_reslist.c
  ===================================================================
  RCS file: /home/cvs/apr-util/misc/apr_reslist.c,v
  retrieving revision 1.2
  retrieving revision 1.2.2.1
  diff -u -d -u -r1.2 -r1.2.2.1
  --- apr_reslist.c	1 Jan 2003 00:02:22 -0000	1.2
  +++ apr_reslist.c	18 Sep 2003 06:19:58 -0000	1.2.2.1
  @@ -368,6 +368,12 @@
        * a resource to fill the slot and use it. */
       else {
           rv = create_resource(reslist, &res);
  +
  +        if (rv != APR_SUCCESS) {
  +           apr_thread_mutex_unlock(reslist->listlock);
  +           return rv;
  +        }
  +
           reslist->ntotal++;
           *resource = res->opaque;
           free_container(reslist, res);
  
  
  

Mime
View raw message