17 May
2017
17 May
'17
4:46 p.m.
Alex Henrie <alexhenrie24(a)gmail.com> writes:
+ if(BCryptOpenAlgorithmProvider(&alg, BCRYPT_SHA256_ALGORITHM, MS_PRIMITIVE_PROVIDER, 0)) + goto end; + if(BCryptCreateHash(alg, &hash, NULL, 0, NULL, 0, 0)) + goto end; + if(BCryptHashData(hash, (UCHAR *)file_map, size, 0)) + goto end; + if(BCryptFinishHash(hash, sha, sizeof(sha), 0)) + goto end;
UnmapViewOfFile(file_map);
You are leaking file_map on error. -- Alexandre Julliard julliard(a)winehq.org