Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150543861
D9982.id26198.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
729 B
Referenced Files
None
Subscribers
None
D9982.id26198.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,13 @@
* the printcap file.
*/
skres = skim_printcap(pcap_fname, verbosity);
- if (skres->fatalerr)
- return (skres->fatalerr);
+ if (skres == NULL) {
+ problems = 1;
+ goto main_ret;
+ } else if (skres->fatalerr) {
+ problems = skres->fatalerr;
+ goto main_ret;
+ }
/*
* Now use the standard capability-db routines to check the values
@@ -156,6 +161,9 @@
warnx("WARNING: but only found %d queues to process!",
queuecnt);
}
+
+main_ret:
+ free(pcap_fname);
return (problems);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 5:29 AM (10 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30745606
Default Alt Text
D9982.id26198.diff (729 B)
Attached To
Mode
D9982: Fix a memory leak in lpr, alternate checks...
Attached
Detach File
Event Timeline
Log In to Comment