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
Sat, Aug 22, 11:16 AM (2 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37042054
Default Alt Text
D9954.diff (623 B)

Event Timeline