src: allow unique_ptrs with custom deleter in memory tracker
Authored by @addaleax and originally landed in the QUIC repo. Separating it out from the QUIC PR. This does not have any QUIC specific bits...
Original review metadata:
PR-URL: https://github.com/nodejs/quic/pull/145
Reviewed-By: James M Snell <jasnell@gmail.com>
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows commit guidelines