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 <[EMAIL PROTECTED]>
Reviewed by: Paul Querna <[EMAIL PROTECTED]>, 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);