Commit 6a559cb3 authored by Pekka Pessi's avatar Pekka Pessi

Fixed memory leak in nta_agent_create()/nta_agent_destroy().

darcs-hash:20051007182115-65a35-4de54f30bc827fd4d21252189e30a41b6e29b14b.gz
parent 9c10e277
......@@ -355,7 +355,7 @@ nta_agent_t *nta_agent_create(su_root_t *root,
ta_start(ta, tag, value);
if ((agent = su_salloc(NULL, sizeof(*agent)))) {
if ((agent = su_home_new(sizeof(*agent)))) {
agent->sa_root = root;
agent->sa_callback = callback;
agent->sa_magic = magic;
......@@ -542,7 +542,7 @@ void nta_agent_destroy(nta_agent_t *agent)
agent_kill_terminator(agent);
su_home_zap(agent->sa_home);
su_home_unref(agent->sa_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