Skip to content
Snippets Groups Projects
Commit 644a9d0e authored by Joshua Colp's avatar Joshua Colp Committed by Gerrit Code Review
Browse files

Merge "taskprocessor.c: Simplify ast_taskprocessor_get() return code."

parents 0a878020 d36c4d0b
Branches
Tags
No related merge requests found
......@@ -713,12 +713,7 @@ struct ast_taskprocessor *ast_taskprocessor_get(const char *name, enum ast_tps_o
}
p = __allocate_taskprocessor(name, listener);
if (!p) {
ao2_ref(listener, -1);
return NULL;
}
/* Unref listener here since the taskprocessor has gained a reference to the listener */
ao2_ref(listener, -1);
return p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment