Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109669783
D9954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
623 B
Referenced Files
None
Subscribers
None
D9954.diff
View Options
Index: usr.sbin/lpr/chkprintcap/chkprintcap.c
===================================================================
--- usr.sbin/lpr/chkprintcap/chkprintcap.c
+++ usr.sbin/lpr/chkprintcap/chkprintcap.c
@@ -113,8 +113,10 @@
* the printcap file.
*/
skres = skim_printcap(pcap_fname, verbosity);
- if (skres->fatalerr)
+ if (skres->fatalerr) {
+ free(pcap_fname);
return (skres->fatalerr);
+ }
/*
* Now use the standard capability-db routines to check the values
@@ -156,6 +158,7 @@
warnx("WARNING: but only found %d queues to process!",
queuecnt);
}
+ free(pcap_fname);
return (problems);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 4:15 AM (21 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16543068
Default Alt Text
D9954.diff (623 B)
Attached To
Mode
D9954: Fix a memory leak in lpr
Attached
Detach File
Event Timeline
Log In to Comment