Ignore:
Timestamp:
Jul 9, 2022, 4:42:02 PM (3 years ago)
Author:
bird
Message:

kash: Must NULL nextc when freeing an output buffer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/output.c

    r3438 r3570  
    9191                ckfree(psh, psh->memout.buf);
    9292                psh->memout.buf = NULL;
     93                psh->memout.nextc = NULL;
    9394        }
    9495}
     
    200201                ckfree(psh, psh->output.buf);
    201202                psh->output.buf = NULL;
     203                psh->output.nextc = NULL;
    202204                psh->output.nleft = 0;
    203205        }
Note: See TracChangeset for help on using the changeset viewer.