Fixed memory leak

Freeing entrypoints before exit to fix a possible memory leak.

Signed-off-by: Shekhar Chauhan <shekharbarca10@gmail.com>
This commit is contained in:
Shekhar Chauhan 2023-03-13 09:04:19 +05:30 committed by Zhang, Xinfeng
parent 4f0496ac41
commit 4e4e2f0abf
1 changed files with 1 additions and 0 deletions

View File

@ -1165,6 +1165,7 @@ static int init_va(void)
/* check the interested configattrib */
if ((attrib[VAConfigAttribRTFormat].value & VA_RT_FORMAT_YUV420) == 0) {
printf("Not find desired YUV420 RT format\n");
free(entrypoints);
exit(1);
} else {
config_attrib[config_attrib_num].type = VAConfigAttribRTFormat;