Page MenuHomeFreeBSD

D47865.diff
No OneTemporary

D47865.diff

diff --git a/sys/compat/linprocfs/linprocfs.c b/sys/compat/linprocfs/linprocfs.c
--- a/sys/compat/linprocfs/linprocfs.c
+++ b/sys/compat/linprocfs/linprocfs.c
@@ -537,9 +537,7 @@
error = kern_getfsstat(td, &buf, SIZE_T_MAX, &count,
UIO_SYSSPACE, MNT_WAIT);
if (error != 0) {
- free(buf, M_TEMP);
- free(flep, M_TEMP);
- return (error);
+ goto out;
}
for (sp = buf; count > 0; sp++, count--) {
@@ -559,6 +557,8 @@
sbuf_printf(sb, " 0 0\n");
}
+ error = 0;
+out:
free(buf, M_TEMP);
free(flep, M_TEMP);
return (error);

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 28, 1:26 PM (14 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17830371
Default Alt Text
D47865.diff (550 B)

Event Timeline