ffmpeg | branch: master | Michael Niedermayer <[email protected]> | Sun Dec 14 15:54:45 2014 +0100| [eb055295bda0d1bcf6aba55db1a31c11fc5db1bd] | committer: Michael Niedermayer
avfilter/f_sendcmd: Use av_freep() to avoid leaving stale pointers in memory Signed-off-by: Michael Niedermayer <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=eb055295bda0d1bcf6aba55db1a31c11fc5db1bd --- libavfilter/f_sendcmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c index c30f49f..20d9fd1 100644 --- a/libavfilter/f_sendcmd.c +++ b/libavfilter/f_sendcmd.c @@ -431,11 +431,11 @@ static av_cold void uninit(AVFilterContext *ctx) Interval *interval = &sendcmd->intervals[i]; for (j = 0; j < interval->nb_commands; j++) { Command *cmd = &interval->commands[j]; - av_free(cmd->target); - av_free(cmd->command); - av_free(cmd->arg); + av_freep(&cmd->target); + av_freep(&cmd->command); + av_freep(&cmd->arg); } - av_free(interval->commands); + av_freep(&interval->commands); } av_freep(&sendcmd->intervals); } _______________________________________________ ffmpeg-cvslog mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
