Skip to content

Commit ff132cf

Browse files
authored
Merge pull request #162 from djw8605/fix-memory-dealloc
Revert "Fix memory leak in rs256_from_coords"
2 parents 24a9196 + f15697f commit ff132cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scitokens_internal.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ std::string rs256_from_coords(const std::string &e_str,
532532
throw UnsupportedKeyException("Failed to serialize RSA public key");
533533
}
534534
#endif
535+
e_bignum.release();
536+
n_bignum.release();
535537

536538
char *mem_data;
537539
size_t mem_len = BIO_get_mem_data(pubkey_bio.get(), &mem_data);

0 commit comments

Comments
 (0)