r19066: Fix a memleak
authorVolker Lendecke <vlendec@samba.org>
Wed, 4 Oct 2006 16:33:42 +0000 (16:33 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:15:07 +0000 (12:15 -0500)
(This used to be commit c53e2e54750764c9a0eb57a86fd226b4f8711a66)

source3/nsswitch/winbindd_util.c

index 4d99b0fbe67e1d720c934c7b79ab6201e853a4fe..f26ec9232b1519fed11aeb3c50afef9b4275b702 100644 (file)
@@ -350,6 +350,7 @@ enum winbindd_result init_child_connection(struct winbindd_domain *domain,
 
        if ((request == NULL) || (response == NULL) || (state == NULL)) {
                DEBUG(0, ("talloc failed\n"));
+               TALLOC_FREE(mem_ctx);
                continuation(private_data, False);
                return WINBINDD_ERROR;
        }