summaryrefslogtreecommitdiff
path: root/res/res_odbc.c
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2008-12-17 21:46:19 +0000
committerMark Michelson <mmichelson@digium.com>2008-12-17 21:46:19 +0000
commit6c459b1b58babb56435dd7d444b7454799d4758b (patch)
tree710bdd8fd2332519b38299350aeaab0c724fff17 /res/res_odbc.c
parent7c1bd94231cd75222dd4e15b14353dd24a0e63bf (diff)
Fix a refcount leak in res_odbc
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_odbc.c')
-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;
}