diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-10 21:23:23 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2008-07-10 21:23:23 +0000 |
commit | 8b0f38cc577f8edb62cd1e2b4b6f797c1978bccc (patch) | |
tree | 3f8979b3926c8b7b37c2dcadb93c341231dc836f /res | |
parent | eb5cce4586d6e3607a7e21022ee677173b3b659c (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@129758 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
-rw-r--r-- | res/res_config_odbc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_config_odbc.c b/res/res_config_odbc.c index 4c579b978..d2f7f373b 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -142,8 +142,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, |