mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-05 14:50:25 +00:00
avformat/os_support: Use av_freep() to avoid leaving stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0f671dfeac
commit
48ae72e501
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user