mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 06:48:33 +00:00
FS-10167: Bug fixes, memory leaks, etc
This commit is contained in:
1 parent
f9d23ccadd
commit
2ff3ce1a5c
4 files changed
+15
-6
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user