From 457c11e528117d9e5697d6d602438f8d7226476d Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 31 Oct 2018 19:53:57 +0300 Subject: [PATCH] Fix memory leak in ingest_find_best() --- libftl/ingest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libftl/ingest.c b/libftl/ingest.c index f0a1230..bb0b3ce 100644 --- a/libftl/ingest.c +++ b/libftl/ingest.c @@ -338,6 +338,7 @@ char * ingest_find_best(ftl_stream_configuration_private_t *ftl) { } if ((data = (_tmp_ingest_thread_data_t *)malloc(sizeof(_tmp_ingest_thread_data_t) * ftl->ingest_count)) == NULL) { + free(handle); return NULL; }