Browse Source

avformat/mmst: Use av_freep() avoid leaving stale pointers in memory

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 11 years ago
parent
commit
8db0c2ffe6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/mmst.c

+ 2
- 2
libavformat/mmst.c View File

@@ -477,8 +477,8 @@ static int mms_close(URLContext *h)
}

/* free all separately allocated pointers in mms */
av_free(mms->streams);
av_free(mms->asf_header);
av_freep(&mms->streams);
av_freep(&mms->asf_header);

return 0;
}


Loading…
Cancel
Save