VirtualBox

Changeset 38783 in vbox


Ignore:
Timestamp:
Sep 16, 2011 5:31:48 PM (13 years ago)
Author:
vboxsync
Message:

Additions/solaris/SharedFolders: fixed a couple of memory leaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_prov.c

    r38107 r38783  
    336336                }
    337337        }
     338        else
     339                kmem_free(str, size);
    338340        newfp = kmem_alloc(sizeof(sfp_file_t), KM_SLEEP);
    339341        newfp->handle = parms.Handle;
     
    360362            SHFL_CF_ACT_OVERWRITE_IF_EXISTS;
    361363        rc = vboxCallCreate(&vbox_client, &mnt->map, str, &parms);
     364        kmem_free(str, size);
    362365
    363366        if (RT_FAILURE(rc)) {
    364                 kmem_free(str, size);
    365367                return (EINVAL);
    366368        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette