summaryrefslogtreecommitdiff
path: root/cel/cel_sqlite3_custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'cel/cel_sqlite3_custom.c')
-rw-r--r--cel/cel_sqlite3_custom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cel/cel_sqlite3_custom.c b/cel/cel_sqlite3_custom.c
index 2906ed9ee..4596e770e 100644
--- a/cel/cel_sqlite3_custom.c
+++ b/cel/cel_sqlite3_custom.c
@@ -262,7 +262,7 @@ static void write_cel(const struct ast_event *event, void *userdata)
}
sql = sqlite3_mprintf("INSERT INTO %q (%s) VALUES (%s)", table, columns, ast_str_buffer(value_string));
ast_debug(1, "About to log: %s\n", sql);
- dummy = ast_channel_release(dummy);
+ dummy = ast_channel_unref(dummy);
ast_free(value_string);
}