| ... | ... |
@@ -115,12 +115,14 @@ static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque) |
| 115 | 115 |
av_opt_set_defaults(over); |
| 116 | 116 |
|
| 117 | 117 |
if (expr = av_strtok(args1, ":", &bufptr)) {
|
| 118 |
+ av_free(over->x_expr); |
|
| 118 | 119 |
if (!(over->x_expr = av_strdup(expr))) {
|
| 119 | 120 |
ret = AVERROR(ENOMEM); |
| 120 | 121 |
goto end; |
| 121 | 122 |
} |
| 122 | 123 |
} |
| 123 | 124 |
if (expr = av_strtok(NULL, ":", &bufptr)) {
|
| 125 |
+ av_free(over->y_expr); |
|
| 124 | 126 |
if (!(over->y_expr = av_strdup(expr))) {
|
| 125 | 127 |
ret = AVERROR(ENOMEM); |
| 126 | 128 |
goto end; |