1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Add back mem leak fixes

(This used to be commit 2adea093c5)
This commit is contained in:
Simo Sorce 2008-07-12 21:13:44 -04:00
parent 02e592486f
commit eda1a267e1

View File

@ -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;