mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Minor chan_nbs fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@793 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -244,9 +244,11 @@ static struct ast_channel *nbs_request(char *type, int format, void *data)
|
||||
return NULL;
|
||||
}
|
||||
p = nbs_alloc(data);
|
||||
tmp = nbs_new(p, AST_STATE_DOWN);
|
||||
if (!tmp)
|
||||
nbs_destroy(p);
|
||||
if (p) {
|
||||
tmp = nbs_new(p, AST_STATE_DOWN);
|
||||
if (!tmp)
|
||||
nbs_destroy(p);
|
||||
}
|
||||
return tmp;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user