1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-14 23:50:19 +02:00

* dynl.c (scm_must_free_argv): Fixed memory leak due to negated

condition.  (Thanks to John Tobey.)

* dynl.c: Only check that HAVE_DLOPEN is defined before loading
dynl-dl.c; Test on HAVE_LIBDLD instead of HAVE_DLD.
This commit is contained in:
Mikael Djurfeldt 1998-04-19 20:15:49 +00:00
parent 3ede541d15
commit c3e09ef939
3 changed files with 15 additions and 2 deletions

View file

@ -114,8 +114,8 @@ scm_must_free_argv(argv)
char **argv;
{
char **av = argv;
while(!(*av))
free(*(av++));
while (*av)
free(*(av++));
free(argv);
}