mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r23879: Fix two memleaks, found by the IBM checker
This commit is contained in:
parent
a369c67f66
commit
4d1b33f513
@ -237,10 +237,12 @@ NTSTATUS unix_convert(connection_struct *conn,
|
||||
if (p) {
|
||||
if (p[2] == '/') {
|
||||
/* Error code within a pathname. */
|
||||
return NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
result = NT_STATUS_OBJECT_PATH_NOT_FOUND;
|
||||
goto fail;
|
||||
} else if (p[2] == '\0') {
|
||||
/* Error code at the end of a pathname. */
|
||||
return NT_STATUS_OBJECT_NAME_INVALID;
|
||||
result = NT_STATUS_OBJECT_NAME_INVALID;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
stat_cache_add(orig_path, name, conn->case_sensitive);
|
||||
|
Loading…
Reference in New Issue
Block a user