You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2007/05/10 23:35:04 UTC
svn commit: r537001 - /apr/apr-util/trunk/dbd/apr_dbd_oracle.c
Author: bojan
Date: Thu May 10 14:35:04 2007
New Revision: 537001
URL: http://svn.apache.org/viewvc?view=rev&rev=537001
Log:
Apply patch from bug #41250, by Chris Darroch
Extra pool layer is not required
Modified:
apr/apr-util/trunk/dbd/apr_dbd_oracle.c
Modified: apr/apr-util/trunk/dbd/apr_dbd_oracle.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_oracle.c?view=diff&rev=537001&r1=537000&r2=537001
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_oracle.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_oracle.c Thu May 10 14:35:04 2007
@@ -458,15 +458,9 @@
size_t vlen;
static const char *const delims = " \r\n\t;|,";
+ ret->pool = pool;
ret->long_size = DEFAULT_LONG_SIZE;
- /* Use our own pool, to avoid possible race conditions
- * on pool ops
- */
- if (apr_pool_create(&ret->pool, pool) != APR_SUCCESS) {
- return NULL;
- }
-
/* snitch parsing from the MySQL driver */
for (ptr = strchr(params, '='); ptr; ptr = strchr(ptr, '=')) {
for (key = ptr-1; isspace(*key); --key);
@@ -2176,7 +2170,6 @@
default:
break;
}
- apr_pool_destroy(handle->pool);
return APR_SUCCESS;
}