mirror of https://github.com/intel/libva-utils.git
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:
parent
4f0496ac41
commit
4e4e2f0abf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue