Free allocated error message string

This commit is contained in:
ValdikSS 2017-12-20 01:48:38 +03:00
parent 312d2b1d55
commit 03e36b968a
1 changed files with 1 additions and 0 deletions

View File

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