source3/winbindd/idmap_tdb_common.c: fix stackframe leak
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:35:31 +0000 (05:05 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:35:31 +0000 (05:05 +0930)
idmap_tdb_common_sid_to_unixid() doesn't always free its stackframe.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/winbindd/idmap_tdb_common.c

index 6f700b848b7f18c0068915905791e962dd97e700..2b16d0ba31868c8a226dea41e933503a26ae08cd 100644 (file)
@@ -462,6 +462,7 @@ NTSTATUS idmap_tdb_common_sid_to_unixid(struct idmap_domain * dom,
        TALLOC_CTX *tmp_ctx = talloc_stackframe();
 
        if (!dom || !map) {
+               talloc_free(tmp_ctx);
                return NT_STATUS_INVALID_PARAMETER;
        }