diff options
Diffstat (limited to 'cel')
-rw-r--r-- | cel/cel_odbc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cel/cel_odbc.c b/cel/cel_odbc.c index cf970690b..d298f1ba2 100644 --- a/cel/cel_odbc.c +++ b/cel/cel_odbc.c @@ -751,11 +751,15 @@ static int unload_module(void) free_config(); AST_RWLIST_UNLOCK(&odbc_tables); + AST_RWLIST_HEAD_DESTROY(&odbc_tables); + return 0; } static int load_module(void) { + AST_RWLIST_HEAD_INIT(&odbc_tables); + if (AST_RWLIST_WRLOCK(&odbc_tables)) { ast_log(LOG_ERROR, "Unable to lock column list. Load failed.\n"); return 0; |