iptables/iptables-1.2.11-free.patch
cvsdist 02e432f320 auto-import changelog data from iptables-1.2.11-2.src.rpm
Wed Aug 25 2004 Thomas Woerner <twoerner@redhat.com> 1.2.11-2
- fixed free bug in iptables (#128322)
2004-09-09 06:26:30 +00:00

19 lines
476 B
Diff

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