Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F133293925
D9637.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
471 B
Referenced Files
None
Subscribers
None
D9637.diff
View Options
Index: usr.sbin/newsyslog/newsyslog.c
===================================================================
--- usr.sbin/newsyslog/newsyslog.c
+++ usr.sbin/newsyslog/newsyslog.c
@@ -2304,6 +2304,7 @@
err(1, "strdup()");
if ((dirp = opendir(dir)) == NULL) {
+ free(logfname);
warn("Cannot open log directory '%s'", dir);
return (t);
}
@@ -2320,6 +2321,7 @@
if (t < sb.st_mtime)
t = sb.st_mtime;
}
+ free(logfname);
closedir(dirp);
return (t);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 25, 5:14 PM (7 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24182062
Default Alt Text
D9637.diff (471 B)
Attached To
Mode
D9637: Fix a memory leak with the variable logfname
Attached
Detach File
Event Timeline
Log In to Comment