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