summaryrefslogtreecommitdiff
path: root/source3/utils/pdbedit.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-07 22:29:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:28 -0500
commitaab1dd4ddbe45c625a6e4502cecd20da5762739b (patch)
tree3ec64a202be141866ef1f0c43a9e00c0d66413dd /source3/utils/pdbedit.c
parent7b2c2e415543aaee13193be1bd11706f2528c692 (diff)
downloadsamba-aab1dd4ddbe45c625a6e4502cecd20da5762739b.tar.gz
samba-aab1dd4ddbe45c625a6e4502cecd20da5762739b.tar.bz2
samba-aab1dd4ddbe45c625a6e4502cecd20da5762739b.zip
r21755: Memory leak fixes from Zack Kirsch <zack.kirsch@isilon.com>.
Jeremy. (This used to be commit 02d08ca0be8c374e30c3c0e665853fa9e57f043a)
Diffstat (limited to 'source3/utils/pdbedit.c')
-rw-r--r--source3/utils/pdbedit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c
index d79ab187a3..d1a87260fa 100644
--- a/source3/utils/pdbedit.c
+++ b/source3/utils/pdbedit.c
@@ -573,6 +573,7 @@ static int new_user (struct pdb_methods *in, const char *username,
if (sscanf(user_sid, "%d", &u_rid) != 1) {
fprintf(stderr, "Error passed string is not a complete user SID or RID!\n");
+ TALLOC_FREE(sam_pwent);
return -1;
}
sid_copy(&u_sid, get_global_sam_sid());