Change e_fp test to use e_tmpname, since e_fp is reset
when file is lcosed in perl.c
}
fputs(message,stderr);
(void)Fflush(stderr);
- if (e_fp) {
- fclose(e_fp);
- e_fp = Nullfp;
+ if (e_tmpname) {
+ if (e_fp) {
+ fclose(e_fp);
+ e_fp = Nullfp;
+ }
(void)UNLINK(e_tmpname);
+ Safefree(e_tmpname);
+ e_tmpname = Nullch;
}
statusvalue = SHIFTSTATUS(statusvalue);
#ifdef VMS
}
fputs(message,stderr);
(void)Fflush(stderr);
- if (e_fp) {
- fclose(e_fp);
- e_fp = Nullfp;
+ if (e_tmpname) {
+ if (e_fp) {
+ fclose(e_fp);
+ e_fp = Nullfp;
+ }
(void)UNLINK(e_tmpname);
+ Safefree(e_tmpname);
+ e_tmpname = Nullch;
}
statusvalue = SHIFTSTATUS(statusvalue);
#ifdef VMS