diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-22 11:49:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-12 17:11:54 +0100 |
commit | 48ae72e50193b2bc9157acc316df323081926b12 (patch) | |
tree | 1708d54551e9f9ab515023deebb7b9c976ff0c5e | |
parent | 0f671dfeac1f8872ca2fc1fe8a424a87487d366e (diff) | |
download | ffmpeg-48ae72e50193b2bc9157acc316df323081926b12.tar.gz |
avformat/os_support: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/os_support.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c index f9d6eeaf90..7950e44889 100644 --- a/libavformat/os_support.c +++ b/libavformat/os_support.c @@ -159,9 +159,9 @@ void ff_freeaddrinfo(struct addrinfo *res) } #endif /* HAVE_WINSOCK2_H */ - av_free(res->ai_canonname); - av_free(res->ai_addr); - av_free(res); + av_freep(&res->ai_canonname); + av_freep(&res->ai_addr); + av_freep(&res); } int ff_getnameinfo(const struct sockaddr *sa, int salen, |