Free allocated error message string

This commit is contained in:
ValdikSS 2017-12-20 01:48:38 +03:00
parent 312d2b1d55
commit 03e36b968a

View File

@ -119,6 +119,7 @@ static HANDLE init(char *filter, UINT64 flags) {
NULL, GetLastError(), MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), NULL, GetLastError(), MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
(LPTSTR)&errormessage, 0, NULL); (LPTSTR)&errormessage, 0, NULL);
printf("%s", errormessage); printf("%s", errormessage);
free(errormessage);
return NULL; return NULL;
} }