taskprocessor.c: Remove extra unref from off-nominal path.

Change-Id: Iee3bd8c8a528776056972066698fe735f0f6cf60
This commit is contained in:
Richard Mudgett
2015-06-05 13:46:25 -05:00
parent cf98c744d5
commit 32ddf6d86b

View File

@@ -593,7 +593,6 @@ static struct ast_taskprocessor *__allocate_taskprocessor(const char *name, stru
return NULL;
}
if (!(p->name = ast_strdup(name))) {
ao2_ref(p, -1);
return NULL;
}