mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-29 15:36:13 +00:00 
			
		
		
		
	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/trunk@261917 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		| @@ -331,6 +331,7 @@ static int acf_odbc_write(struct ast_channel *chan, const char *cmd, char *s, co | |||||||
|  |  | ||||||
| 			if (obj && !transactional) { | 			if (obj && !transactional) { | ||||||
| 				ast_odbc_release_obj(obj); | 				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); | 				SQLRowCount(stmt, &rows); | ||||||
| 				break; | 				break; | ||||||
| 			} | 			} | ||||||
|  | 			ast_odbc_release_obj(obj); | ||||||
|  | 			obj = NULL; | ||||||
| 		} | 		} | ||||||
| 	} else if (stmt) { | 	} else if (stmt) { | ||||||
| 		status = "SUCCESS"; | 		status = "SUCCESS"; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user