Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110665724
D42329.id129283.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
525 B
Referenced Files
None
Subscribers
None
D42329.id129283.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
@@ -79,7 +79,6 @@
retry:
nv.data = malloc(size);
memcpy(nv.data, data, nvlen);
- free(data);
nv.len = nvlen;
nv.size = size;
@@ -97,13 +96,15 @@
if (ret == 0) {
*nvl = nvlist_unpack(nv.data, nv.len, 0);
if (*nvl == NULL) {
- free(nv.data);
- return (EIO);
+ ret = EIO;
+ goto out;
}
} else {
ret = errno;
}
+out:
+ free(data);
free(nv.data);
return (ret);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 4:06 PM (3 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16774540
Default Alt Text
D42329.id129283.diff (525 B)
Attached To
Mode
D42329: libpfctl: fix pfctl_do_ioctl()
Attached
Detach File
Event Timeline
Log In to Comment