- applies if the dispatcher module cannot resolve hostnames during startup (and tries to shutdown) - patch by Hugh Waite
@@ -323,7 +323,6 @@ int add_dest2list(int id, str uri, int flags, int priority, str *attrs,
if (he==0)
{
LM_ERR("could not resolve %.*s\n", puri.host.len, puri.host.s);
- pkg_free(hn);
goto err;
}
/* Free the hostname */
@@ -815,7 +814,8 @@ void destroy_list(int list_id)
dest->uri.s = NULL;
- shm_free(sp->dlist);
+ if (sp->dlist != NULL)
+ shm_free(sp->dlist);
sp = sp->next;