Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150528484
D9867.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
486 B
Referenced Files
None
Subscribers
None
D9867.diff
View Options
Index: head/lib/libutil/kinfo_getvmobject.c
===================================================================
--- head/lib/libutil/kinfo_getvmobject.c
+++ head/lib/libutil/kinfo_getvmobject.c
@@ -46,8 +46,10 @@
buf = NULL;
for (i = 0; i < 3; i++) {
- if (sysctlbyname("vm.objects", NULL, &len, NULL, 0) < 0)
+ if (sysctlbyname("vm.objects", NULL, &len, NULL, 0) < 0) {
+ free(buf);
return (NULL);
+ }
buf = reallocf(buf, len);
if (buf == NULL)
return (NULL);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 1:43 AM (9 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30740699
Default Alt Text
D9867.diff (486 B)
Attached To
Mode
D9867: Fix a memory leak in libutil
Attached
Detach File
Event Timeline
Log In to Comment