aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
Diffstat (limited to 'res')
-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 62f2f51f7..18c64c9a3 100644
--- a/res/res_odbc.c
+++ b/res/res_odbc.c
@@ -748,6 +748,7 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check)
}
#endif
+ ao2_ref(class, -1);
return obj;
}