Page MenuHomeFreeBSD

D55422.id172716.diff
No OneTemporary

D55422.id172716.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, Aug 26, 7:18 AM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37240104
Default Alt Text
D55422.id172716.diff (336 B)

Event Timeline