Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106029517
D30492.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30492.diff
View Options
diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -130,6 +130,7 @@
nvlist_add_binary(nvl, "addr", addr, sizeof(*addr));
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -159,6 +160,7 @@
pfctl_nv_add_addr(nvl, "mask", &addr->v.a.mask);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -192,6 +194,7 @@
nvlist_add_number(nvl, "port_op", addr->port_op);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -214,6 +217,7 @@
nvlist_add_number(nvl, "psidlen", mape->psidlen);
nvlist_add_number(nvl, "psid", mape->psid);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -234,6 +238,7 @@
pfctl_nv_add_mape(nvl, "mape", &pool->mape);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -277,6 +282,7 @@
nvlist_add_number(nvl, "op", uid->op);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -296,6 +302,7 @@
nvlist_add_number(nvl, "port", r->divert.port);
nvlist_add_nvlist(nvparent, name, nvl);
+ nvlist_destroy(nvl);
}
static void
@@ -511,6 +518,7 @@
pfctl_nv_add_divert(nvlr, "divert", r);
nvlist_add_nvlist(nvl, "rule", nvlr);
+ nvlist_destroy(nvlr);
/* Now do the call. */
nv.data = nvlist_pack(nvl, &nv.len);
@@ -625,6 +633,7 @@
nvlist_add_number(nv, "direction", cmp->direction);
nvlist_add_nvlist(nvl, name, nv);
+ nvlist_destroy(nv);
}
static void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 3:59 AM (8 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15594089
Default Alt Text
D30492.diff (1 KB)
Attached To
Mode
D30492: libpfctl: fix memory leak
Attached
Detach File
Event Timeline
Log In to Comment