projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bf707e
)
Plug potential memory leak.
author
Richard Levitte
<levitte@openssl.org>
Wed, 30 Oct 2002 09:42:47 +0000
(09:42 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Wed, 30 Oct 2002 09:42:47 +0000
(09:42 +0000)
Identified by Goetz Babin-Ebell <babinebell@trustcenter.de>
crypto/pem/pem_lib.c
patch
|
blob
|
history
diff --git
a/crypto/pem/pem_lib.c
b/crypto/pem/pem_lib.c
index a8db6ffbf5cc4155054668a8128376b983b33eab..296865a4dc64985bf947a27a324e0763d1f7dcff 100644
(file)
--- a/
crypto/pem/pem_lib.c
+++ b/
crypto/pem/pem_lib.c
@@
-249,7
+249,7
@@
int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, const char
ret = 1;
err:
- if (!pnm) OPENSSL_free(nm);
+ if (!
ret || !
pnm) OPENSSL_free(nm);
OPENSSL_free(header);
if (!ret) OPENSSL_free(data);
return ret;