Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149242135
D30492.1789739826.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30492.1789739826.diff
View Options
Index: lib/libpfctl/libpfctl.c
===================================================================
--- lib/libpfctl/libpfctl.c
+++ 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
Fri, Sep 18, 1:57 PM (15 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29756403
Default Alt Text
D30492.1789739826.diff (1 KB)
Attached To
Mode
D30492: libpfctl: fix memory leak
Attached
Detach File
Event Timeline
Log In to Comment