projects
/
mod_auth_gssapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4160a77
)
Use apr_pool_cleanup_register() to cleanup mc
author
Isaac Boukris
<iboukris@gmail.com>
Sun, 14 Jun 2015 19:34:28 +0000
(22:34 +0300)
committer
Simo Sorce
<simo@redhat.com>
Sun, 14 Jun 2015 21:48:54 +0000
(17:48 -0400)
Instead of using apr_pool_userdata_set() since we don't use apr_pool_userdata_get() with the mag_conn_ptr apr_pool_cleanup_register() seem cleaner.
Reviewed-by: Simo Sorce <simo@redhat.com>
src/mod_auth_gssapi.c
patch
|
blob
|
history
diff --git
a/src/mod_auth_gssapi.c
b/src/mod_auth_gssapi.c
index
f0fa83f
..
39d63a5
100644
(file)
--- a/
src/mod_auth_gssapi.c
+++ b/
src/mod_auth_gssapi.c
@@
-424,8
+424,8
@@
static int mag_auth(request_rec *req)
if (mc) {
/* register the context in the memory pool, so it can be freed
* when the connection/request is terminated */
- apr_pool_
userdata_set(mc, "mag_conn_ptr"
,
-
mag_conn_destroy, mc->parent
);
+ apr_pool_
cleanup_register(mc->parent, (void *) mc
,
+
mag_conn_destroy, apr_pool_cleanup_null
);
if (mc->established && !auth_header) {
ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, req,