aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/pbx_ael.c
diff options
context:
space:
mode:
authormurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 21:36:10 +0000
committermurf <murf@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-22 21:36:10 +0000
commit0ce66b82cf617b638aa0108d6621e70dfca52969 (patch)
tree849a6b19ba1550b27e289c6933dd2ea4033dca90 /pbx/pbx_ael.c
parentdbb12b59df4e2ebfd5f40c998b6e102b5a80c59f (diff)
This commits a change to return MODULE_LOAD_FAILURE on error, and SUCCESS (instead of 0) when all goes well for bug 8004
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@43508 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/pbx_ael.c')
-rw-r--r--pbx/pbx_ael.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pbx/pbx_ael.c b/pbx/pbx_ael.c
index f460b630f..1594c82b3 100644
--- a/pbx/pbx_ael.c
+++ b/pbx/pbx_ael.c
@@ -3825,10 +3825,12 @@ static int pbx_load_module(void)
ast_log(LOG_NOTICE, "AEL load process: verified config file name '%s'.\n", rfilename);
} else {
ast_log(LOG_ERROR, "Sorry, but %d syntax errors and %d semantic errors were detected. It doesn't make sense to compile.\n", errs, sem_err);
+ destroy_pval(parse_tree); /* free up the memory */
+ return AST_MODULE_LOAD_FAILURE;
}
destroy_pval(parse_tree); /* free up the memory */
- return 0;
+ return AST_MODULE_LOAD_SUCCESS;
}
/* CLI interface */