diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-14 17:54:45 +0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-14 17:54:45 +0300 |
commit | eb055295bda0d1bcf6aba55db1a31c11fc5db1bd (patch) | |
tree | cf2a5260d7e7a336356407d8a44bf13c6250a621 /libavfilter/f_sendcmd.c | |
parent | ad2deb02e5d8bfd67c99c6409cd1d0992984fdc7 (diff) |
avfilter/f_sendcmd: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/f_sendcmd.c')
-rw-r--r-- | libavfilter/f_sendcmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavfilter/f_sendcmd.c b/libavfilter/f_sendcmd.c index c30f49f0bc..20d9fd1059 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); } |