History

avfilter picture pool: double free hotfix

This fix introduces a small memleak

Michael Niedermayer committed 15 years ago

Commit 90c69631 parent 6cbe8191 file · +3 −2Browse files

Unified · Split

libavfilter/avfilter.c+3−2
@@ -182,10 +182,11 @@ void avfilter_link_free(AVFilterLink **link) · 181 unmodified lines
182182
183183 av_freep(&picref->audio);
184184 av_freep(&picref->video);
185− av_freep(&picref);
185+ av_freep(&(*link)->pool->pic[i]);
186186 }
187187 }
188− av_freep(&(*link)->pool);
188+ (*link)->pool->count = 0;
189+// av_freep(&(*link)->pool);
189190 }
190191 av_freep(link);
191192 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t