[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: What is wrong with this program?



Way to go Victor!

Perhaps Red Hat would like to review the fix and fold it into their
next glibc rpm?  Anyone know if the same problem is in the older
non-glibc version of libdl?

Cheers

Andrew

Victor  E. Kamensky writes:
>       I hope the following patch fixes the problem. But I am sure 
> it requires double check.
> ----------------------------------------------------------------------------
> *** ../glibc-2.0.7.orig/elf/dl-close.c  Thu May 21 17:00:34 1998
> --- elf/dl-close.c      Wed Oct  7 14:51:14 1998
> ***************
> *** 118,123 ****
> --- 118,129 ----
>             imap->l_next->l_prev = imap->l_prev;
>           if (imap->l_searchlist && imap->l_searchlist != list)
>             free (imap->l_searchlist);
> +           if(imap->l_name)
> +               free(imap->l_name);
> +           if(imap->l_libname)
> +               free(imap->l_libname);
> +           if(imap->l_dupsearchlist)
> +               free(imap->l_dupsearchlist); /* ?? something else inside ?? */
>           free (imap);
>         }
>       }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []