Skip to content

Commit a760a87

Browse files
skomskiFishrock123
authored andcommitted
crypto: fix memory leak in SafeX509ExtPrint
PR-URL: #2375 Reviewed-By: Ben Noordhuis <[email protected]>
1 parent f45487c commit a760a87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/node_crypto.cc

+1
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,7 @@ static bool SafeX509ExtPrint(BIO* out, X509_EXTENSION* ext) {
12971297
if (nval == NULL)
12981298
return false;
12991299
X509V3_EXT_val_prn(out, nval, 0, 0);
1300+
sk_CONF_VALUE_pop_free(nval, X509V3_conf_free);
13001301
}
13011302
}
13021303
sk_GENERAL_NAME_pop_free(names, GENERAL_NAME_free);

0 commit comments

Comments
 (0)