FS-10167: Bug fixes, memory leaks, etc

This commit is contained in:
Shane Bryldt committed 2017-07-03 13:45:29 -06:00
1 parent f9d23ccadd
commit 2ff3ce1a5c
4 files changed
+15 -6

No files matched your search

+5 -2
View File
@@ -73,14 +73,17 @@ ks_status_t testproto_create(testproto_t **testP, blade_handle_t *bh)
ks_status_t testproto_destroy(testproto_t **testP)
{
testproto_t *test = NULL;
//ks_pool_t *pool = NULL;
ks_pool_t *pool = NULL;
ks_assert(testP);
ks_assert(*testP);
test = *testP;
pool = test->pool;
ks_pool_free(test->pool, testP);
ks_pool_close(&pool);
*testP = NULL;
return KS_STATUS_SUCCESS;
}