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:
William Rogers
2015-05-24 16:49:44 -05:00
parent 5888c4a52c
commit bcc7ad5a7a

View File

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