Skip to content

Commit

Permalink
win32: Fix potential memory leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
k-takata committed Nov 10, 2020
1 parent f883508 commit 0a8167a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/os_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -3532,7 +3532,10 @@ mch_get_acl(char_u *fname)

wn = enc_to_utf16(fname, NULL);
if (wn == NULL)
{
vim_free(p);
return NULL;
}

// Try to retrieve the entire security descriptor.
err = GetNamedSecurityInfoW(
Expand Down

0 comments on commit 0a8167a

Please sign in to comment.