https://origsvn.digium.com/svn/asterisk/trunk
........
r261917 | tilghman | 2010-05-07 15:54:35 -0500 (Fri, 07 May 2010) | 8 lines
Double free crash
(closes issue #17245)
Reported by: thedavidfactor
Patches:
20100426__issue17245.diff.txt uploaded by tilghman (license 14)
Tested by: murraytm
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.2@261947
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (obj && !transactional) {
ast_odbc_release_obj(obj);
+ obj = NULL;
}
}
SQLRowCount(stmt, &rows);
break;
}
+ if (obj) {
+ ast_odbc_release_obj(obj);
+ obj = NULL;
+ }
}
} else if (stmt) {
status = "SUCCESS";
if (stmt) {
break;
}
+ if (obj) {
+ ast_odbc_release_obj(obj);
+ obj = NULL;
+ }
}
if (!stmt) {