
dkg at fifthhorseman
Nov 12, 2009, 11:58 PM
Post #1 of 1
(421 views)
Permalink
|
|
docs for gcry_mpi_aprint should indicate how to release buffer
|
|
hey folks-- more gcrypt documentation nit-picking: the docs for gcrypt_mpi_aprint() say: > Convert the MPI a into an external representation described by format > (see above) and store it in a newly allocated buffer which address will > be stored in the variable buffer points to. The number of bytes stored > in this buffer will be stored in the variable nbytes points to, unless > nbytes is NULL. I'd assume that buffer must later be released by the caller with gcry_free(), but the docs don't say so explicitly. perhaps they should? --dkg
|