mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-25 17:59:54 +08:00
Fixed memory leak in _SQLFreeEnv
Memory allocated for the _henv structure was not being freed which caused a small memory leak.
This commit is contained in:
@@ -1300,6 +1300,7 @@ static SQLRETURN SQL_API _SQLFreeEnv(
|
||||
return SQL_ERROR;
|
||||
}
|
||||
g_ptr_array_free(env->connections, TRUE);
|
||||
g_free(env);
|
||||
|
||||
return SQL_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user