dect
/
asterisk
Archived
13
0
Fork 0

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: http://svn.digium.com/svn/asterisk/trunk@261917 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2010-05-07 20:54:35 +00:00
parent dd538fa676
commit 5e4aa9cb30
1 changed files with 3 additions and 0 deletions

View File

@ -331,6 +331,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
if (obj && !transactional) {
ast_odbc_release_obj(obj);
obj = NULL;
}
}
}
@ -350,6 +351,8 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co
SQLRowCount(stmt, &rows);
break;
}
ast_odbc_release_obj(obj);
obj = NULL;
}
} else if (stmt) {
status = "SUCCESS";