Commit 79062dfc authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Not using su_home_deinit() to destroy homes that are not initialized.

darcs-hash:20050908163219-65a35-9f006e8244ce0b3b1ffc0232cd099cf6d61fa3ba.gz
parent 352d864a
...@@ -526,7 +526,7 @@ server_t *server_create(url_t const *url, ...@@ -526,7 +526,7 @@ server_t *server_create(url_t const *url,
if (!root || !url || if (!root || !url ||
(url->url_type != url_http && url->url_type != url_https) (url->url_type != url_http && url->url_type != url_https)
|| !(srv = su_salloc(NULL, sizeof(*srv)))) { || !(srv = su_home_new(sizeof(*srv)))) {
ta_end(ta); ta_end(ta);
return NULL; return NULL;
} }
...@@ -575,8 +575,7 @@ void server_destroy(server_t *srv) ...@@ -575,8 +575,7 @@ void server_destroy(server_t *srv)
{ {
tport_destroy(srv->srv_tports); tport_destroy(srv->srv_tports);
su_timer_destroy(srv->srv_timer); su_timer_destroy(srv->srv_timer);
su_home_deinit(srv->srv_home); su_home_unref(srv->srv_home);
su_free(NULL, srv);
} }
/** Initialize server timer. */ /** Initialize server timer. */
......
...@@ -286,11 +286,10 @@ void nua_destroy(nua_t *nua) ...@@ -286,11 +286,10 @@ void nua_destroy(nua_t *nua)
if (nua) { if (nua) {
su_clone_wait(nua->nua_api_root, nua->nua_clone); su_clone_wait(nua->nua_api_root, nua->nua_clone);
su_home_deinit(nua->nua_home);
#if HAVE_SMIME /* Start NRC Boston */ #if HAVE_SMIME /* Start NRC Boston */
sm_destroy(nua->sm); sm_destroy(nua->sm);
#endif /* End NRC Boston */ #endif /* End NRC Boston */
su_free(NULL, nua); su_home_unref(nua->nua_home);
} }
} }
......
...@@ -110,8 +110,7 @@ void su_vector_destroy(su_vector_t *vector) ...@@ -110,8 +110,7 @@ void su_vector_destroy(su_vector_t *vector)
} }
} }
su_home_deinit(vector->v_home); su_home_zap(vector->v_home);
su_free(vector->v_parent, vector->v_home);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment