Page MenuHomeFreeBSD

D55422.diff
No OneTemporary

D55422.diff

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

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)

Event Timeline