summaryrefslogtreecommitdiff
path: root/cel
diff options
context:
space:
mode:
Diffstat (limited to 'cel')
-rw-r--r--cel/cel_pgsql.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cel/cel_pgsql.c b/cel/cel_pgsql.c
index 5ba5b9972..8db85d721 100644
--- a/cel/cel_pgsql.c
+++ b/cel/cel_pgsql.c
@@ -346,8 +346,9 @@ ast_log_cleanup:
static int my_unload_module(void)
{
struct columns *current;
- AST_RWLIST_WRLOCK(&psql_columns);
+
ast_cel_backend_unregister(PGSQL_BACKEND_NAME);
+ AST_RWLIST_WRLOCK(&psql_columns);
if (conn) {
PQfinish(conn);
conn = NULL;