diff --git a/res/res_odbc.c b/res/res_odbc.c index c017f0c0b4..808867f848 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -750,6 +750,7 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check) } #endif + ao2_ref(class, -1); return obj; }