memory leak in nfs41_root_create
if nfs41_client_onwer fails, allocated memory for "root" is never removed
This commit is contained in:
parent
f7a9932cb3
commit
cac63b1f37
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue