cvsdist 02e432f
--- iptables-1.2.11/iptables.c.free	2004-08-25 19:10:34.098917816 +0200
cvsdist 02e432f
+++ iptables-1.2.11/iptables.c	2004-08-25 19:12:42.366228649 +0200
cvsdist 02e432f
@@ -2344,11 +2344,11 @@
cvsdist 02e432f
 		e = NULL;
cvsdist 02e432f
 	}
cvsdist 02e432f
 
cvsdist 02e432f
-	for (c = 0; c < nsaddrs; c++)
cvsdist 02e432f
-		free(&saddrs[c]);
cvsdist 02e432f
+	/* free the whole array - allocated with calloc */
cvsdist 02e432f
+	free(saddrs);
cvsdist 02e432f
 
cvsdist 02e432f
-	for (c = 0; c < ndaddrs; c++)
cvsdist 02e432f
-		free(&daddrs[c]);
cvsdist 02e432f
+	/* free the whole array - allocated with calloc */
cvsdist 02e432f
+	free(daddrs);
cvsdist 02e432f
 
cvsdist 02e432f
 	if (opts != original_opts) {
cvsdist 02e432f
 		free(opts);