scons: fix memory leak in configure test

This commit is contained in:
Dane Springmeyer 2014-10-06 17:23:18 -07:00
parent 1ae43a25ff
commit 87e5df48de

View file

@ -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;
} }