diff options
| author | Garance A Drosehn <gad@FreeBSD.org> | 2018-03-12 01:41:16 +0000 |
|---|---|---|
| committer | Garance A Drosehn <gad@FreeBSD.org> | 2018-03-12 01:41:16 +0000 |
| commit | 02e8b7b2e797332ee897123d6227d14d1c3fff85 (patch) | |
| tree | 73b8badafc92f49b662f0e57d2aabdf64fa1869b /usr.sbin | |
| parent | df5f14797b6f170b00f910486794855989fee25b (diff) | |
Notes
Diffstat (limited to 'usr.sbin')
| -rw-r--r-- | usr.sbin/lpr/common_source/ctlinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/lpr/common_source/ctlinfo.c b/usr.sbin/lpr/common_source/ctlinfo.c index 9d2f310b1314..d1f828e5ed99 100644 --- a/usr.sbin/lpr/common_source/ctlinfo.c +++ b/usr.sbin/lpr/common_source/ctlinfo.c @@ -292,8 +292,10 @@ ctl_readcf(const char *ptrname, const char *cfname) msize = sroom2 + CTI_LINEMAX; msize = roundup(msize, 8); cstart = malloc(msize); - if (cstart == NULL) + if (cstart == NULL) { + fclose(cfile); return NULL; + } memset(cstart, 0, msize); cpriv = (struct cjprivate *)cstart; cpriv->pub.cji_priv = cpriv; |
