1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Free initstring before exiting (being pendantic)

This commit is contained in:
Nick Patavalis
2017-12-14 11:43:28 +02:00
parent c6c753e31a
commit 6d3066eeb8

View File

@ -364,6 +364,10 @@ fatal (const char *format, ...)
uucp_unlock();
#endif
if ( opts.initstring ) {
free(opts.initstring);
opts.initstring = NULL;
}
free(opts.port);
if (opts.log_filename) {
free(opts.log_filename);