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/shinstance.c

    r3569 r3570  
    429429
    430430    /* output.h */
    431         if (psh->output.buf != NULL)
     431    if (psh->output.buf != NULL)
    432432    {
    433433        ckfree(psh, psh->output.buf);
    434434        psh->output.buf = NULL;
    435         }
    436         if (psh->errout.buf != NULL)
     435    }
     436    if (psh->errout.buf != NULL)
    437437    {
    438438        ckfree(psh, psh->errout.buf);
    439439        psh->errout.buf = NULL;
    440         }
    441         if (psh->memout.buf != NULL)
     440    }
     441    if (psh->memout.buf != NULL)
    442442    {
    443443        ckfree(psh, psh->memout.buf);
    444444        psh->memout.buf = NULL;
    445         }
     445    }
    446446
    447447    /* options.h */
Note: See TracChangeset for help on using the changeset viewer.