Fix some memleaks on shutdown

This commit is contained in:
jsteube
2016-09-30 13:36:27 +02:00
parent d2877b95e4
commit af1701c765
18 changed files with 103 additions and 20 deletions
+6 -1
View File
@@ -32,7 +32,12 @@ void loopback_init (loopback_ctx_t *loopback_ctx, const user_options_t *user_opt
void loopback_destroy (loopback_ctx_t *loopback_ctx)
{
if (loopback_ctx->enabled == false) return;
if (loopback_ctx->enabled == false)
{
myfree (loopback_ctx);
return;
}
myfree (loopback_ctx->filename);