Skip to content

Commit 90082b9

Browse files
authored
Fix resource leak (#1093)
1 parent cf01d4f commit 90082b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/mongocrypt-marking.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,7 @@ static bool _fle2_placeholder_aes_aead_encrypt(_mongocrypt_key_broker_t *kb,
491491
_mongocrypt_buffer_init_size(&iv, MONGOCRYPT_IV_LEN);
492492
if (!_mongocrypt_random(crypto, &iv, iv.len, status)) {
493493
_mongocrypt_buffer_cleanup(&key);
494+
_mongocrypt_buffer_cleanup(&iv);
494495
return false;
495496
}
496497

0 commit comments

Comments
 (0)