mp4: fix null deref

This used one too many derefs, and then due to the earlier write of null
near the beginning of the function (making a null write here redundant)
there was thus a null-deref.

Regression from 0e9db4f7e6.
This commit is contained in:
Lyndon Brown 2022-03-08 07:04:13 +00:00 committed by Rémi Denis-Courmont
parent de3a522abb
commit 8a88f1005c
1 changed files with 0 additions and 1 deletions

View File

@ -371,7 +371,6 @@ size_t MP4_GetAttachments( const MP4_Box_t *p_root, input_attachment_t ***ppp_at
if ( i_count == 0 )
{
free( pp_attach );
**ppp_attach = NULL;
return 0;
}