summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_odbc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index c017f0c0b..808867f84 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;
}