Skip to content
Snippets Groups Projects
Commit 6774913e authored by Richard Mudgett's avatar Richard Mudgett
Browse files

app_agent_pool.c: Fix off nominal ref leak.

Change-Id: Ib427ffc2c802620eaafb08b1c2a17dddd8fb8eb6
parent edba638a
No related branches found
No related tags found
No related merge requests found
...@@ -438,6 +438,7 @@ static void *agent_cfg_alloc(const char *name) ...@@ -438,6 +438,7 @@ static void *agent_cfg_alloc(const char *name)
cfg = ao2_alloc_options(sizeof(*cfg), agent_cfg_destructor, cfg = ao2_alloc_options(sizeof(*cfg), agent_cfg_destructor,
AO2_ALLOC_OPT_LOCK_NOLOCK); AO2_ALLOC_OPT_LOCK_NOLOCK);
if (!cfg || ast_string_field_init(cfg, 64)) { if (!cfg || ast_string_field_init(cfg, 64)) {
ao2_cleanup(cfg);
return NULL; return NULL;
} }
ast_string_field_set(cfg, username, name); ast_string_field_set(cfg, username, name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment