dougm 02/03/14 16:30:55
Modified: misc apr_rmm.c
Log:
Submitted by: madhu
Reviewed by: dougm
fixes for apr_rmm_realloc()
Revision Changes Path
1.11 +1 -2 apr-util/misc/apr_rmm.c
Index: apr_rmm.c
===================================================================
RCS file: /home/cvs/apr-util/misc/apr_rmm.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- apr_rmm.c 14 Mar 2002 23:46:29 -0000 1.10
+++ apr_rmm.c 15 Mar 2002 00:30:55 -0000 1.11
@@ -383,13 +383,12 @@
old = apr_rmm_offset_get(rmm, entity);
if ((this = apr_rmm_malloc(rmm, reqsize)) < 0) {
- return rv;
+ return this;
}
if (old >= 0) {
memcpy(apr_rmm_addr_get(rmm, this),
apr_rmm_addr_get(rmm, old), reqsize);
- move_block(rmm, old, 1);
apr_rmm_free(rmm, old);
}