Don't attempt to release a NULL ODBC handle.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@283350 65c4cc65-6c06-0410-ace0-fbb531ad65f3
certified/1.8.6
Russell Bryant 15 years ago
parent 37e25116a1
commit 9d1909c9b4

@ -502,8 +502,10 @@ static int acf_odbc_read(struct ast_channel *chan, const char *cmd, char *s, cha
if (stmt) {
break;
}
ast_odbc_release_obj(obj);
obj = NULL;
if (obj) {
ast_odbc_release_obj(obj);
obj = NULL;
}
}
if (!stmt) {

Loading…
Cancel
Save