5 Aug
2022
5 Aug
'22
12:50 p.m.
Hans Leidekker (@hans) commented about dlls/winhttp/net.c:
+{ + struct async_resolve *ret; + + if (!(ret = malloc(sizeof(*ret)))) + { + ERR( "No memory.\n" ); + return NULL; + } + ret->ref = 1; + ret->hostname = strdupW( hostname ); + ret->port = port; + if (!(ret->done = CreateEventW( NULL, FALSE, FALSE, NULL ))) + { + free( ret ); + return NULL; + } This leaks ret->hostname on error. Ideally we'd use GetAddrInfoExW() here but the timeout parameter is not supported yet.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/591#note_5710