Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146497800
D55422.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
336 B
Referenced Files
None
Subscribers
None
D55422.diff
View Options
diff --git a/usr.bin/procstat/procstat_kqueue.c b/usr.bin/procstat/procstat_kqueue.c
--- a/usr.bin/procstat/procstat_kqueue.c
+++ b/usr.bin/procstat/procstat_kqueue.c
@@ -135,8 +135,10 @@
}
}
- if (strlen(res) == 0)
- return (strdup("-"));
+ if (strlen(res) == 0) {
+ free(res);
+ res = strdup("-");
+ }
return (res);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 4, 4:05 AM (2 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28945350
Default Alt Text
D55422.diff (336 B)
Attached To
Mode
D55422: procstat: CID 1593951: Resource leak
Attached
Detach File
Event Timeline
Log In to Comment