aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-10 21:24:31 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-10 21:24:31 +0000
commit8b8f10637bdceb5e07761234bf6f7eb1ec9f0cc8 (patch)
treec01f5c7cfeb03117b35fc7f62f4ac78042439fbb /res
parent86f61fe0b25608052fd3f94141744b6337e09c88 (diff)
Merged revisions 129758 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r129758 | tilghman | 2008-07-10 16:23:23 -0500 (Thu, 10 Jul 2008) | 10 lines Merged revisions 129741 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r129741 | tilghman | 2008-07-10 16:19:48 -0500 (Thu, 10 Jul 2008) | 2 lines Oops ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@129764 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_config_odbc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c
index 8a28ddec8..9ce9d5e11 100644
--- a/res/res_config_odbc.c
+++ b/res/res_config_odbc.c
@@ -138,8 +138,10 @@ static struct ast_variable *realtime_odbc(const char *database, const char *tabl
}
newparam = va_arg(aq, const char *);
- if (!newparam)
+ if (!newparam) {
+ ast_odbc_release_obj(obj);
return NULL;
+ }
newval = va_arg(aq, const char *);
op = !strchr(newparam, ' ') ? " =" : "";
snprintf(sql, sizeof(sql), "SELECT * FROM %s WHERE %s%s ?%s", table, newparam, op,