projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Accept NULL in *_free.
[openssl.git]
/
crypto
/
buffer
/
buffer.c
diff --git
a/crypto/buffer/buffer.c
b/crypto/buffer/buffer.c
index 7e8af9e2fa367d11f56c2c82eadade457e30f2c3..b160a74a473c2d317fe846274804c0db922d0925 100644
(file)
--- a/
crypto/buffer/buffer.c
+++ b/
crypto/buffer/buffer.c
@@
-79,6
+79,9
@@
BUF_MEM *BUF_MEM_new()
void BUF_MEM_free(a)
BUF_MEM *a;
{
+ if(a == NULL)
+ return;
+
if (a->data != NULL)
{
memset(a->data,0,(unsigned int)a->max);