r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for the
[abartlet/samba.git/.git] / source4 / lib / util_sock.c
index 876698535bacb0ee39cd88dfc0f6e6d591b27e2c..7fe42f7ffce565ee21f39146bb990b1b6df73b06 100644 (file)
@@ -428,7 +428,7 @@ int open_udp_socket(const char *host, int port)
        sock_out.sin_port = htons(port);
        sock_out.sin_family = PF_INET;
        
-       talloc_destroy(mem_ctx);
+       talloc_free(mem_ctx);
 
        if (connect(res,(struct sockaddr *)&sock_out,sizeof(sock_out))) {
                close(res);