source3/rpc_server/svcctl/srv_svcctl_reg.c: fix stackframe leak
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:34:31 +0000 (05:04 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 17 Jul 2012 19:34:31 +0000 (05:04 +0930)
svcctl_init_winreg() doesn't free its stackframe.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
source3/rpc_server/svcctl/srv_svcctl_reg.c

index e695f0df8fdc2ab94cd6f426abbef810a5f81d7c..c3ce43f305ebe7e958d6060b3a0c54481cbd856d 100644 (file)
@@ -702,6 +702,7 @@ done:
                }
        }
        regdb_close();
+       talloc_free(tmp_ctx);
        return ok;
 }