mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
parent
02e592486f
commit
eda1a267e1
@ -149,11 +149,13 @@ NTSTATUS smb_register_idmap(int version, const char *name,
|
|||||||
entry = talloc(idmap_ctx, struct idmap_backend);
|
entry = talloc(idmap_ctx, struct idmap_backend);
|
||||||
if ( ! entry) {
|
if ( ! entry) {
|
||||||
DEBUG(0,("Out of memory!\n"));
|
DEBUG(0,("Out of memory!\n"));
|
||||||
|
TALLOC_FREE(entry);
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
entry->name = talloc_strdup(idmap_ctx, name);
|
entry->name = talloc_strdup(idmap_ctx, name);
|
||||||
if ( ! entry->name) {
|
if ( ! entry->name) {
|
||||||
DEBUG(0,("Out of memory!\n"));
|
DEBUG(0,("Out of memory!\n"));
|
||||||
|
TALLOC_FREE(entry);
|
||||||
return NT_STATUS_NO_MEMORY;
|
return NT_STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
entry->methods = methods;
|
entry->methods = methods;
|
||||||
|
Loading…
Reference in New Issue
Block a user