diff options
author | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-22 21:34:04 +0000 |
---|---|---|
committer | murf <murf@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-09-22 21:34:04 +0000 |
commit | 03723031d28659ffc2e55b08852c8f2aa363bdcb (patch) | |
tree | 0828761a39a8fe47c3f2e4e5656499285fb95c27 /pbx | |
parent | d55e6f507dc1c07dfcdafc04f5c3e4c367385dba (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/trunk@43507 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r-- | pbx/pbx_ael.c | 4 |
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 */ |