This fix introduces a small memleak
Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link) · 181 unmodified lines | |||
| 182 | 182 | ||
| 183 | av_freep(&picref->audio); | 183 | av_freep(&picref->audio); |
| 184 | av_freep(&picref->video); | 184 | av_freep(&picref->video); |
| 185 | av_freep(&picref); | 185 | av_freep(&(*link)->pool->pic[i]); |
| 186 | } | 186 | } |
| 187 | } | 187 | } |
| 188 | av_freep(&(*link)->pool); | 188 | (*link)->pool->count = 0; |
| 189 | // av_freep(&(*link)->pool); | ||
| 189 | } | 190 | } |
| 190 | av_freep(link); | 191 | av_freep(link); |
| 191 | } | 192 | } |