guile: Keep a weak reference on objects aggregated by other objects.
authorLudovic Courtès <ludo@gnu.org>
Thu, 27 Jun 2013 22:42:44 +0000 (00:42 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 27 Jun 2013 22:43:35 +0000 (00:43 +0200)
commit55e8943e923bde2b6101325284bc3bb21f58ba03
tree33374e52f6f22dd7175f24168916f5be3a26201f
parentb6a71a3194a76dfd5e335e46e602048a1e9b1b5c
guile: Keep a weak reference on objects aggregated by other objects.

Before, in cases such as `set-anonymous-server-dh-parameters!' where the
C object beneath CRED keeps a pointer to the C object beneath DH_PARAMS,
DH_PARAMS could be garbage-collected before CRED, leading to the
destruction of the underlying C object.

Reported by Nikos Mavrogiannopoulos <nmav@gnutls.org>.
guile/src/core.c