[BTRFSLIB] Reduce the diff with upstream, and fix a memory leak.
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 22 Nov 2020 04:57:00 +0000 (05:57 +0100)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Sun, 22 Nov 2020 20:34:13 +0000 (21:34 +0100)
commitcdaa5d5fc78d5abd25cfdb007a8b50d285500eca
tree4d89df7789063842f8162e6a9c6dd75729acdc81
parent65758cc3b453ef59c91593eec70d56b837e35d26
[BTRFSLIB] Reduce the diff with upstream, and fix a memory leak.

- Reduce the diff with upstream by aliasing malloc() and free()
  with RtlAllocateHeap() and RtlFreeHeap() respectively.

- Fix a memory leak in the failure code path of the do-while
  memory reallocation loop for IOCTL_BTRFS_QUERY_FILESYSTEMS
  in is_mounted_multi_device().
sdk/lib/fslib/btrfslib/btrfslib.c