Free memory on error
authorAlistair Leslie-Hughes <leslie_alistair@hotmail.com>
Wed, 4 Sep 2013 06:50:14 +0000 (16:50 +1000)
committerJeremy Allison <jra@samba.org>
Wed, 18 Sep 2013 17:46:41 +0000 (19:46 +0200)
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 18 19:46:41 CEST 2013 on sn-devel-104

source4/libnet/libnet_site.c

index 5a58c8aa94818fff01c966e4ffe2dc6c4189d868..67b8016fa9e270af4760b67e6e9cff7daec2b910 100644 (file)
@@ -65,6 +65,7 @@ NTSTATUS libnet_FindSite(TALLOC_CTX *ctx, struct libnet_context *lctx, struct li
        if (ret != 0) {
                r->out.error_string = NULL;
                status = map_nt_error_from_unix_common(errno);
+               talloc_free(tmp_ctx);
                return status;
        }