diff options
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/pbx.c b/main/pbx.c index 5fb02016b..ac1c781e9 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1301,7 +1301,7 @@ int pbx_builtin_raise_exception(struct ast_channel *chan, void *vtype) if (!ds) return -1; exception = ast_calloc(1, sizeof(struct pbx_exception)); - if (!ds->data) { + if (!exception) { ast_channel_datastore_free(ds); return -1; } |