[FFmpeg-cvslog] avfilter/f_sendcmd: Use av_freep() to avoid leaving stale pointers in memory
Michael Niedermayer
git at videolan.org
Sun Dec 14 16:08:09 CET 2014
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | 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 <michaelni at gmx.at>
> 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);
}
More information about the ffmpeg-cvslog
mailing list