scons: fix memory leak in configure test
This commit is contained in:
parent
1ae43a25ff
commit
87e5df48de
1 changed files with 2 additions and 0 deletions
|
@ -998,10 +998,12 @@ int main()
|
||||||
if (rc != SQLITE_OK)
|
if (rc != SQLITE_OK)
|
||||||
{
|
{
|
||||||
printf("error 2: %s\\n", sqlite3_errmsg(db));
|
printf("error 2: %s\\n", sqlite3_errmsg(db));
|
||||||
|
sqlite3_close(db);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf("yes, has rtree!\\n");
|
printf("yes, has rtree!\\n");
|
||||||
|
sqlite3_close(db);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue