fix the resource leak 26/223226/1
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 27 Jan 2020 23:28:38 +0000 (08:28 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Mon, 27 Jan 2020 23:28:38 +0000 (08:28 +0900)
Change-Id: I7b4f4ee61712092e17427a743dad5f23941e910a

client/tdm_client.c

index 543805c..0e50916 100644 (file)
@@ -2082,6 +2082,7 @@ tdm_client_create_voutput(tdm_client *client, const char *name, tdm_error *error
        private_voutput->bufmgr = tbm_bufmgr_init(-1);
        if (private_voutput->bufmgr == NULL) {
                /* LCOV_EXCL_START */
+               wl_proxy_wrapper_destroy(wrapper);
                TDM_ERR("fail tbm_bufmgr_init");
                free(private_voutput);
                if (error)