Fix memory leak in pg_hmac
authorDaniel Gustafsson <[email protected]>
Fri, 1 Oct 2021 20:47:05 +0000 (22:47 +0200)
committerDaniel Gustafsson <[email protected]>
Fri, 1 Oct 2021 20:47:05 +0000 (22:47 +0200)
commit0ded7039fab314afb7cbaf36b52209f253c05539
tree900efb736b147f5335bb6f72661ac7801fb5a1b3
parent8c1144ba73478b818d9cebe8ecd64a14b7d45bde
Fix memory leak in pg_hmac

The intermittent h buffer was not freed, causing it to leak. Backpatch
through 14 where HMAC was refactored to the current API.

Author: Sergey Shinderuk <[email protected]>
Discussion: https://postgr.es/m/af07e620-7e28-a742-4637-2bc44aa7c2be@postgrespro.ru
Backpatch-through: 14
src/common/hmac.c