memory leak in nfs41_root_create

if nfs41_client_onwer fails, allocated memory for "root" is never removed
This commit is contained in:
Olga Kornievskaia 2010-12-02 12:29:54 -05:00 committed by unknown
parent f7a9932cb3
commit cac63b1f37

View file

@ -65,6 +65,7 @@ int nfs41_root_create(
status = nfs41_client_owner(name, sec_flavor, &root->client_owner); status = nfs41_client_owner(name, sec_flavor, &root->client_owner);
if (status) { if (status) {
eprintf("nfs41_client_owner() failed with %d\n", status); eprintf("nfs41_client_owner() failed with %d\n", status);
free(root);
goto out; goto out;
} }