r4055: fixed more places to use type safe allocation macros
[bbaumbach/samba-autobuild/.git] / source4 / lib / netif / interface.c
index 3555170123fec820186adbd73578e00814723dee..c73a2e3d7b73377be37d3cbd2290b4bc516f8593 100644 (file)
@@ -83,7 +83,7 @@ static void add_interface(struct in_addr ip, struct in_addr nmask)
                return;
        }
 
-       iface = (struct interface *)malloc(sizeof(*iface));
+       iface = malloc_p(struct interface);
        if (!iface) return;
        
        ZERO_STRUCTPN(iface);