Skip to content

Commit 4e4e2f0

Browse files
shekhar-chauhanXinfengZhang
authored andcommitted
Fixed memory leak
Freeing entrypoints before exit to fix a possible memory leak. Signed-off-by: Shekhar Chauhan <[email protected]>
1 parent 4f0496a commit 4e4e2f0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

encode/h264encode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,6 +1165,7 @@ static int init_va(void)
11651165
/* check the interested configattrib */
11661166
if ((attrib[VAConfigAttribRTFormat].value & VA_RT_FORMAT_YUV420) == 0) {
11671167
printf("Not find desired YUV420 RT format\n");
1168+
free(entrypoints);
11681169
exit(1);
11691170
} else {
11701171
config_attrib[config_attrib_num].type = VAConfigAttribRTFormat;

0 commit comments

Comments
 (0)