mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/f_sendcmd: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ad2deb02e5
commit
eb055295bd
@ -431,11 +431,11 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
Interval *interval = &sendcmd->intervals[i];
|
Interval *interval = &sendcmd->intervals[i];
|
||||||
for (j = 0; j < interval->nb_commands; j++) {
|
for (j = 0; j < interval->nb_commands; j++) {
|
||||||
Command *cmd = &interval->commands[j];
|
Command *cmd = &interval->commands[j];
|
||||||
av_free(cmd->target);
|
av_freep(&cmd->target);
|
||||||
av_free(cmd->command);
|
av_freep(&cmd->command);
|
||||||
av_free(cmd->arg);
|
av_freep(&cmd->arg);
|
||||||
}
|
}
|
||||||
av_free(interval->commands);
|
av_freep(&interval->commands);
|
||||||
}
|
}
|
||||||
av_freep(&sendcmd->intervals);
|
av_freep(&sendcmd->intervals);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user