summaryrefslogtreecommitdiffstats
path: root/source/sam/idmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/sam/idmap.c')
-rw-r--r--source/sam/idmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/sam/idmap.c b/source/sam/idmap.c
index 3abfb0ae9f1..d18157643b1 100644
--- a/source/sam/idmap.c
+++ b/source/sam/idmap.c
@@ -83,7 +83,7 @@ NTSTATUS smb_register_idmap(int version, const char *name, struct idmap_methods
return NT_STATUS_OBJECT_NAME_COLLISION;
}
- entry = smb_xmalloc(sizeof(struct idmap_function_entry));
+ entry = SMB_XMALLOC_P(struct idmap_function_entry);
entry->name = smb_xstrdup(name);
entry->methods = methods;