taskprocessor.c: Remove extra unref from off-nominal path.
[asterisk/asterisk.git] / main / taskprocessor.c
index 8730253..1edbaa3 100644 (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;
        }