On Saturday 01 May 2010, TwoThe wrote:
> Type: Bug
> Severity: major, ressource leak
> Component: VirtualBox OSE
> Host: Ubuntu 64
>
> In file src/VBox/Additions/linux/sharedfolders/mount.vboxsf.c:
>
> 393 iconv_t cd;
> 394
> #395 cd = iconv_open ("UTF-8", in_codeset);
> 396 if (cd == (iconv_t) -1)
> 397 {
> 398 panic_err ("could not convert share name, iconv_open `%s'
> failed", 399 in_codeset);
> 400 }
> 401
> 402 while (ib)
> 403 {
> 404 size_t c = iconv (cd, &i, &ib, &o, &ob);
> 405 if (c == (size_t) -1)
> 406 {
> 407 panic_err ("could not convert share name(%s) at %d",
> 408 host_name, (int)(strlen (host_name) - ib));
> 409 }
> 410 }
> 411 *o = 0;
> 412}
>
> In line 395 iconv_open will acquire memory that is never freed.Thank you for this report! Your observation is correct and another leak is opts.convertcp which is allocated and never freed. However, this is only a minor leak because this file is part of mount.vboxsf --- a process which has a very short lifetime and all ressources are freed on process termination. Kind regards, Frank -- Dr.-Ing. Frank Mehnert Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht München: HRB 161028 Geschäftsführer: Jürgen Kunz
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ vbox-dev mailing list [email protected] http://vbox.innotek.de/mailman/listinfo/vbox-dev
