On date Saturday 2023-07-15 12:46:10 +0200, Anton Khirnov wrote:
> Inline the relevant part of ffprobe_cleanup() into main() and drop the
> rest.
> ---
>  fftools/ffprobe.c | 22 ++++++++--------------
>  1 file changed, 8 insertions(+), 14 deletions(-)
> 
> diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c
> index e234c92904..a39185f6fe 100644
> --- a/fftools/ffprobe.c
> +++ b/fftools/ffprobe.c
> @@ -381,17 +381,6 @@ static void log_callback(void *ptr, int level, const 
> char *fmt, va_list vl)
>  #endif
>  }
>  
> -static void ffprobe_cleanup(int ret)
> -{

> -    int i;
> -    for (i = 0; i < FF_ARRAY_ELEMS(sections); i++)
> -        av_dict_free(&(sections[i].entries_to_show));
> -

Was this part discarded? This is mostly needed to avoid valgrind
warnings.

LGTM otherwise.

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to