aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-17 21:48:59 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-17 21:48:59 +0000
commit7a46de3168f275ed1e4b872621e709e53324e6e3 (patch)
tree86a8efd569a39b5f22bd4c28489654aef715e7a2
parent80bff20981d494fb8ba29a766ce2980f0d4c34bf (diff)
Merged revisions 165330 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r165330 | mmichelson | 2008-12-17 15:46:19 -0600 (Wed, 17 Dec 2008) | 3 lines Fix a refcount leak in res_odbc ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@165332 f38db490-d61c-443f-a65b-d21fe96a405b
-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;
}