#include "proxy.h"
#include "ssh.h"
+#include "wincapi.h"
#include "winsecur.h"
#ifdef COVERITY
/*
* The hack I use to build for Coverity scanning, using winegcc and
- * Makefile.cyg, didn't provide some defines in wincrypt.h last time I
+ * Makefile.mgw, didn't provide some defines in wincrypt.h last time I
* looked. Therefore, define them myself here, but enclosed in #ifdef
* COVERITY to ensure I don't make up random nonsense values for any
* real build.
if (!make_private_security_descriptor(MUTEX_ALL_ACCESS,
&psd, &acl, logtext)) {
sfree(mutexname);
+ sfree(name);
return SHARE_NONE;
}
*logtext = dupprintf("CreateMutex(\"%s\") failed: %s",
mutexname, win_strerror(GetLastError()));
sfree(mutexname);
+ sfree(name);
LocalFree(psd);
LocalFree(acl);
return SHARE_NONE;