Found-by: jamrial
Showing the changes to libavformat/cache.c (1 of 1 file). Show all
Unified · Split
| @@ -283,6 +283,12 @@ resolve_eof: · 282 unmodified lines | ||
| 283 | 283 | return ret; |
| 284 | 284 | } |
| 285 | 285 | |
| 286 | +static int enu_free(void *opaque, void *elem) | |
| 287 | +{ | |
| 288 | + av_free(elem); | |
| 289 | + return 0; | |
| 290 | +} | |
| 291 | + | |
| 286 | 292 | static int cache_close(URLContext *h) |
| 287 | 293 | { |
| 288 | 294 | Context *c= h->priv_data; |
| @@ -292,6 +298,7 @@ static int cache_close(URLContext *h) · 3 unmodified lines | ||
| 292 | 298 | |
| 293 | 299 | close(c->fd); |
| 294 | 300 | ffurl_close(c->inner); |
| 301 | + av_tree_enumerate(c->root, NULL, NULL, enu_free); | |
| 295 | 302 | av_tree_destroy(c->root); |
| 296 | 303 | |
| 297 | 304 | return 0; |