Browse Source

avfilter/f_sendcmd: Use av_freep() to avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
eb055295bd
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      libavfilter/f_sendcmd.c

+ 4
- 4
libavfilter/f_sendcmd.c View File

@@ -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);
}


Loading…
Cancel
Save