diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-10 21:19:48 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-10 21:19:48 +0000 |
commit | 58a523aa129c88c4b79546e3598db070bed3c67b (patch) | |
tree | 7eb67d458e99130c0bd55683b99e3ea8dcf1d222 /res | |
parent | ea5913808d2bf7c800d46bec643409e8ba97bff6 (diff) |
Oops
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@129741 f38db490-d61c-443f-a65b-d21fe96a405b
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 af85f0a6a..7f11b5db3 100644 --- a/res/res_config_odbc.c +++ b/res/res_config_odbc.c @@ -132,8 +132,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, |