Skip to content

Commit

Permalink
Bug 1546477 - FIPS review changes. r=mt, Fix memory leak in error pat…
Browse files Browse the repository at this point in the history
…h issue

--HG--
extra : transplant_source : %B1%F1B%0D%90%C0%08%7D%C3%D8%BC%87%E5%B86%A3%B6%CEB%95
  • Loading branch information
rjrelyea committed Jun 1, 2019
1 parent efac930 commit fbc7f55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions gtests/pk11_gtest/manifest.mn
Expand Up @@ -7,6 +7,7 @@ DEPTH = ../..
MODULE = nss

CPPSRCS = \
pk11_aes_gcm_unittest.cc \
pk11_aeskeywrap_unittest.cc \
pk11_cbc_unittest.cc \
pk11_chacha20poly1305_unittest.cc \
Expand Down
4 changes: 4 additions & 0 deletions lib/freebl/rijndael.c
Expand Up @@ -1041,6 +1041,10 @@ AES_DestroyContext(AESContext *cx, PRBool freeit)
PORT_Memset(cx, 0, sizeof(AESContext));
if (freeit) {
PORT_Free(mem);
} else {
/* if we are not freeing the context, restore mem, We may get called
* again to actually free the context */
cx->mem = mem;
}
}

Expand Down

0 comments on commit fbc7f55

Please sign in to comment.