From 45494344b2cbb7678f7fc46601fb17421370b64d Mon Sep 17 00:00:00 2001 From: Changyeon Lee Date: Tue, 6 Sep 2022 16:54:28 +0900 Subject: [PATCH] tdm_client: Fix leak of resource Change-Id: I69e700bf91da5d736377033c2c3825eaeb4b82bb --- client/tdm_client.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/tdm_client.c b/client/tdm_client.c index 0cf3df4..ddfc222 100644 --- a/client/tdm_client.c +++ b/client/tdm_client.c @@ -1814,9 +1814,6 @@ tdm_client_voutput_cb_buffer_import_with_fd(void *data, TDM_RETURN_IF_FAIL(private_voutput != NULL); - buffer = calloc(1, sizeof *buffer); - TDM_RETURN_IF_FAIL(buffer != NULL); - tbm_surface = _tdm_client_voutput_create_surface_from_param(private_voutput->bufmgr, 1, width, height, format, bpp, size, num_plane, -- 2.7.4