Fix the way memory is freed in Check_Result.po/fix-memory-corruptionv2.0.2
commit9ef4001e1f9257b47e80c64b95a32a561252c3c3
authorPascal Obry <pascal@obry.net>
Thu, 25 Feb 2010 14:44:36 +0000 (25 15:44 +0100)
committerPascal Obry <pascal@obry.net>
Thu, 25 Feb 2010 14:44:36 +0000 (25 15:44 +0100)
tree86f1a45e1843b49d81cb0d6bf2d76d8dad36da34
parentca708c99a371793640fc4c7aefdd75a376a5c95c
Fix the way memory is freed in Check_Result.

Error_Msg is the address of the memory chunk to release. So
we use an unchecked conversion here. This fix a memory
corruption as the previous code was releasing a random memory
chunk.
Makefile
src/db-sqlite.adb
tests/regtests.gpr
tests/t3.adb [copied from tests/regtests.gpr with 64% similarity]