Error with gcry_mpi_release with opaque value.

Werner Koch wk at
Fri Jun 29 07:17:18 CEST 2018

On Thu, 28 Jun 2018 13:54, stefbon at said:

> malloc and free. Maybe initialize? gcry_free does not work without
> first calling gcry_malloc?

Libcrypt needs to be initialized; if you forgot that you should get a
notice in the syslog.  There is some fallback initialization but that
does not work in all cases.

Why don't you use the gcry_mpi_set_opaque_copy function?



#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the Gcrypt-devel mailing list