AmendHub

Download:

jcs

/

subtext

/

amendments

/

219

zmodem: Fix bogus free in ZDestroy, file_name is no longer a pointer


jcs made amendment 219 over 2 years ago
--- zmodem.c Wed Jul 13 13:44:37 2022 +++ zmodem.c Thu Jul 21 09:01:34 2022 @@ -1613,7 +1613,7 @@ ZDestroy(struct zmodem_session *zs) if (zs->file) fclose(zs->file); - if (zs->file_name) - free(zs->file_name); + if (zs->upload_file_path) + free(zs->upload_file_path); free(zs); }