History

libavcodec/tiffenc: Use av_freep() avoid leaving stale pointers in memory

Michael Niedermayer committed 12 years ago

Commit bb5e1481 parent 98fbf8e1 file · +1 −1Browse files

Unified · Split

libavcodec/tiffenc.c+1−1
@@ -420,7 +420,7 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt, · 419 unmodified lines
420420 }
421421 }
422422 if (s->compr == TIFF_LZW)
423− av_free(s->lzws);
423+ av_freep(&s->lzws);
424424 }
425425
426426 s->num_entries = 0;

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