Fix additional memory leak in process_mapfile
Additional Coverity detected memory leak fix. Submitted by: bret_ketchum@dell.com Reported by: Coverity Reviewed by: cem, emaste MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D26462
This commit is contained in:
parent
edd1bf93b3
commit
acde2586c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365845
@ -821,6 +821,8 @@ process_mapfile(FILE *outfp, char *fpath)
|
|||||||
/* TODO Deal with lines longer than 16K */
|
/* TODO Deal with lines longer than 16K */
|
||||||
pr_info("%s: Mapfile %s: line %d too long, aborting\n",
|
pr_info("%s: Mapfile %s: line %d too long, aborting\n",
|
||||||
prog, fpath, line_num);
|
prog, fpath, line_num);
|
||||||
|
free(line);
|
||||||
|
fclose(mapfp);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
line[strlen(line)-1] = '\0';
|
line[strlen(line)-1] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user