X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fmswindows.c;h=1dd979269d8b93fe64df076a136740f77f52b31f;hp=f96db154324de5370e39098028006b0ed95e5631;hb=462e643a7e31676eceda23e634241f7b4d2cd7bb;hpb=3073a77ed89e7d9527d110a028d134bfd1f9cb40 diff --git a/src/mswindows.c b/src/mswindows.c index f96db154..1dd97926 100644 --- a/src/mswindows.c +++ b/src/mswindows.c @@ -28,7 +28,9 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ -#include +#define INHIBIT_WRAP /* avoid wrapping of socket, bind, ... */ + +#include "wget.h" #include #include @@ -37,9 +39,7 @@ as that of the covered work. */ #include #include -#define INHIBIT_WRAP /* avoid wrapping of socket, bind, ... */ -#include "wget.h" #include "utils.h" #include "url.h" @@ -74,7 +74,7 @@ xsleep (double seconds) } void -windows_main (int *argc, char **argv, char **exec_name) +windows_main (char **exec_name) { char *p; @@ -88,6 +88,7 @@ windows_main (int *argc, char **argv, char **exec_name) static void ws_cleanup (void) { + xfree ((char*)exec_name); WSACleanup (); }