VirtualBox

Changeset 36332 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 21, 2011 7:42:56 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70663
Message:

Additions/sharedfolders/linux: don't free the instantiated path name when doing symlink

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/sharedfolders/dirops.c

    r34033 r36332  
    775775
    776776    rc = vboxCallSymlink(&client_handle, &sf_g->map, path, ssymname, &info);
     777    kfree(ssymname);
     778
    777779    if (RT_FAILURE(rc))
    778780    {
     
    780782        {
    781783            err = -EROFS;
    782             goto fail2;
    783         }
     784            goto fail1;
     785        }
     786        LogFunc(("vboxCallSymlink(%s) failed rc=%Rrc\n",
     787                    fDirectory, sf_i->path->String.utf8, rc));
    784788        err = -EPROTO;
    785         goto fail2;
     789        goto fail1;
    786790    }
    787791
     
    791795        LogFunc(("could not instantiate dentry for %s err=%d\n",
    792796                 sf_i->path->String.utf8, err));
    793         goto fail2;
    794     }
    795 
    796 fail2:
    797     kfree(ssymname);
     797        goto fail1;
     798    }
     799
     800    sf_i->force_restat = 1;
     801    return 0;
     802
    798803fail1:
    799804    kfree(path);
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