s3: Fix a memleak in make_new_server_info_system()
authorVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2010 21:47:42 +0000 (14:47 -0700)
committerVolker Lendecke <vl@samba.org>
Sat, 25 Sep 2010 23:12:37 +0000 (01:12 +0200)
source3/auth/auth_util.c

index 287d9632a99cda4ba782f4235b292f6af1828149..94adc3c7fc242a68e93457bbe4122ea3e446e5fa 100644 (file)
@@ -761,6 +761,7 @@ static NTSTATUS make_new_server_info_system(TALLOC_CTX *mem_ctx,
                                             pwd->pw_name,
                                             false,
                                             server_info);
+       TALLOC_FREE(pwd);
        if (!NT_STATUS_IS_OK(status)) {
                return status;
        }