Page MenuHomeFreeBSD

D9954.diff
No OneTemporary

D9954.diff

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

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)

Event Timeline