[asterisk-commits] tilghman: branch 1.4 r129741 - /branches/1.4/res/res_config_odbc.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 10 16:19:49 CDT 2008
Author: tilghman
Date: Thu Jul 10 16:19:48 2008
New Revision: 129741
URL: http://svn.digium.com/view/asterisk?view=rev&rev=129741
Log:
Oops
Modified:
branches/1.4/res/res_config_odbc.c
Modified: branches/1.4/res/res_config_odbc.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_config_odbc.c?view=diff&rev=129741&r1=129740&r2=129741
==============================================================================
--- branches/1.4/res/res_config_odbc.c (original)
+++ branches/1.4/res/res_config_odbc.c Thu Jul 10 16:19:48 2008
@@ -132,8 +132,10 @@
}
newparam = va_arg(aq, const char *);
- if (!newparam)
- return NULL;
+ 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,
More information about the asterisk-commits
mailing list