Fix a refcount leak in res_odbc
authorMark Michelson <mmichelson@digium.com>
Wed, 17 Dec 2008 21:46:19 +0000 (21:46 +0000)
committerMark Michelson <mmichelson@digium.com>
Wed, 17 Dec 2008 21:46:19 +0000 (21:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165330 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_odbc.c

index c017f0c..808867f 100644 (file)
@@ -750,6 +750,7 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check)
        }
 #endif
 
+       ao2_ref(class, -1);
        return obj;
 }