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:
parent
3ede541d15
commit
c3e09ef939
3 changed files with 15 additions and 2 deletions
|
@ -114,8 +114,8 @@ scm_must_free_argv(argv)
|
|||
char **argv;
|
||||
{
|
||||
char **av = argv;
|
||||
while(!(*av))
|
||||
free(*(av++));
|
||||
while (*av)
|
||||
free(*(av++));
|
||||
free(argv);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue