projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5aaf05
)
(who): Free `utmp_buf' so there is no confusion about
author
Jim Meyering
<jim@meyering.net>
Thu, 6 Nov 2003 09:28:40 +0000
(09:28 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 6 Nov 2003 09:28:40 +0000
(09:28 +0000)
whether it's leaked or not.
src/who.c
patch
|
blob
|
history
diff --git
a/src/who.c
b/src/who.c
index fc46b6fe764784ad839569dfeb4c7f3e914e86c6..46cb71c9e3c6ed20a2900ded54344e5233ede4fb 100644
(file)
--- a/
src/who.c
+++ b/
src/who.c
@@
-605,6
+605,8
@@
who (const char *filename)
list_entries_who (n_users, utmp_buf);
else
scan_entries (n_users, utmp_buf);
+
+ free (utmp_buf);
}
void