taskprocessor.c: Remove extra unref from off-nominal path.
authorRichard Mudgett <rmudgett@digium.com>
Fri, 5 Jun 2015 18:46:25 +0000 (13:46 -0500)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 10 Jun 2015 17:17:02 +0000 (12:17 -0500)
Change-Id: Iee3bd8c8a528776056972066698fe735f0f6cf60

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))) {
                return NULL;
        }
        if (!(p->name = ast_strdup(name))) {
-               ao2_ref(p, -1);
                return NULL;
        }
 
                return NULL;
        }