Ticket #3261 (closed defect: fixed)
OGRFileOpen - double free of the datasource in case of failure
|Reported by:||aboudreault||Owned by:||aboudreault|
|Component:||OGR Support||Version:||svn-trunk (development)|
In the function OGRFileOpen, once the connection to the file/db has been established, the connection is registered in the pool. Then we try to get the to get the layer or execute the sql. If the ExecuteSQL/GetLayer fail, a call to OGR_DS_Destroy is done: but the connection is already registered in the pool and this results in a seg fault when trying to destroy (again) the datasource when msConnPoolClose is called.