]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
taskprocessor.c: Remove extra unref from off-nominal path. 28/628/1
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 18:12:09 +0000 (13:12 -0500)
Change-Id: Iee3bd8c8a528776056972066698fe735f0f6cf60

main/taskprocessor.c

index dd416dbae6aec324df31957e828c5c500f450c5c..20a42fab13c99d70b976a71db282e2a28641b04f 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;
        }