* dynl.c (free_dynl_obj): New function to free the dynamic object
authorMarius Vollmer <mvo@zagadka.de>
Fri, 18 Jul 1997 14:31:06 +0000 (14:31 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Fri, 18 Jul 1997 14:31:06 +0000 (14:31 +0000)
commitc487ad44e7e5b029720bffa4448f8742d8ec9b7a
treec47298addcf26b3343abb2227bdd2c8af6e2b2f2
parentbaff2bd54aef3069b76523e291bcfdf46842ec22
* dynl.c (free_dynl_obj): New function to free the dynamic object
data. (dynl_smob): Use it.
* dynl.c (scm_dynamic_link): Moved allocating of the memory for
the dynamic object data below the linking of the object to avoid
memory leak when the linking code throws an error.  Now the code
leaks a whole dynamically linked library when must_malloc throws,
but that should be much less likely.
libguile/dynl.c