Fixes Coverity CID 1445099
Unified · Split
| @@ -894,7 +894,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char · 893 unmodified lines | ||
| 894 | 894 | |
| 895 | 895 | ctx->priv = old; |
| 896 | 896 | uninit(ctx); |
| 897 | − av_freep(old); | |
| 897 | + av_freep(&old); | |
| 898 | 898 | |
| 899 | 899 | ctx->priv = new; |
| 900 | 900 | return config_input(ctx->inputs[0]); |
| @@ -903,7 +903,7 @@ static int command(AVFilterContext *ctx, const char *cmd, const char *arg, char · 2 unmodified lines | ||
| 903 | 903 | |
| 904 | 904 | fail: |
| 905 | 905 | av_log(ctx, AV_LOG_ERROR, "Failed to process command. Continuing with existing parameters.\n"); |
| 906 | − av_freep(new); | |
| 906 | + av_freep(&new); | |
| 907 | 907 | return ret; |
| 908 | 908 | } |
| 909 | 909 | |