Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131831337
D9962.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
658 B
Referenced Files
None
Subscribers
None
D9962.diff
View Options
Index: head/sbin/ipfw/ipv6.c
===================================================================
--- head/sbin/ipfw/ipv6.c
+++ head/sbin/ipfw/ipv6.c
@@ -339,6 +339,7 @@
{
int len = 0;
struct in6_addr *d = &(cmd->addr6);
+ char *oav;
/*
* Needed for multiple address.
* Note d[1] points to struct in6_add r mask6 of cmd
@@ -365,7 +366,7 @@
return (1);
}
- av = strdup(av);
+ oav = av = strdup(av);
while (av) {
/*
* After the address we can have '/' indicating a mask,
@@ -446,7 +447,7 @@
if (len + 1 > F_LEN_MASK)
errx(EX_DATAERR, "address list too long");
cmd->o.len |= len+1;
- free(av);
+ free(oav);
return (1);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 1:08 PM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23624393
Default Alt Text
D9962.diff (658 B)
Attached To
Mode
D9962: Fix a memory leak in ipfw
Attached
Detach File
Event Timeline
Log In to Comment