Hmm, i think that depends on which BN_ functions. In your example,
BN_bin2bn() returns a new BIGNUM object, so you do not need to BN_new().
b l wrote:
Hi,
If i reuse a BIGNUM created with BN_new() without
freeing it first will i cause a memory leak?
does the BIGNUM dynamically allocate memory eac
thanks Nils,
brian
--- Nils Larsch <[EMAIL PROTECTED]> wrote:
> b l wrote:
> > Hi,
> >
> > If i reuse a BIGNUM created with BN_new() without
> > freeing it first will i cause a memory leak?
>
> no
>
> > does the BIGNUM dynamically allocate memory each
> time
> > it is used by certain functio
b l wrote:
Hi,
If i reuse a BIGNUM created with BN_new() without
freeing it first will i cause a memory leak?
no
does the BIGNUM dynamically allocate memory each time
it is used by certain functions?
yes (but only if it's required)
for example
i create BIGNUM * tempBN=BN_new();
i might make a call
Hi,
If i reuse a BIGNUM created with BN_new() without
freeing it first will i cause a memory leak?
does the BIGNUM dynamically allocate memory each time
it is used by certain functions?
for example
i create BIGNUM * tempBN=BN_new();
i might make a call to
BN_bin2bn (char1,len,tempBN);
i might