projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Various fixes...
[oweals/openssl.git]
/
crypto
/
asn1
/
a_dup.c
diff --git
a/crypto/asn1/a_dup.c
b/crypto/asn1/a_dup.c
index 3202a816d0adae53b3ebd774a3892a352d48d346..c3bda58a5d9ec849fcc1cf7cd3df5ebc079a890b 100644
(file)
--- a/
crypto/asn1/a_dup.c
+++ b/
crypto/asn1/a_dup.c
@@
-71,13
+71,13
@@
char *ASN1_dup(int (*i2d)(), char *(*d2i)(), char *x)
if (x == NULL) return(NULL);
i=(long)i2d(x,NULL);
if (x == NULL) return(NULL);
i=(long)i2d(x,NULL);
- b=(unsigned char *)
M
alloc((unsigned int)i+10);
+ b=(unsigned char *)
OPENSSL_m
alloc((unsigned int)i+10);
if (b == NULL)
{ ASN1err(ASN1_F_ASN1_DUP,ERR_R_MALLOC_FAILURE); return(NULL); }
p= b;
i=i2d(x,&p);
p= b;
ret=d2i(NULL,&p,i);
if (b == NULL)
{ ASN1err(ASN1_F_ASN1_DUP,ERR_R_MALLOC_FAILURE); return(NULL); }
p= b;
i=i2d(x,&p);
p= b;
ret=d2i(NULL,&p,i);
-
F
ree(b);
+
OPENSSL_f
ree(b);
return(ret);
}
return(ret);
}