hunk: unconditionally free optional contents

laumann
Jul 18, 2023, 8:18 PM
FM2KHERTELOSEZRVS6JVE4TWW2S75USLHXQSOIOYH5IQ4JECQIXQC

Dependencies

  • [2] PC54CREY hunk: free hunk list resources properly
  • [3] 5D2IYPL7 change: introduce changestore, print deleted lines
  • [*] JAGXXSR7 change: initial work on decoding hunks

Change contents

  • replacement in hunk.c at line 68
    [2.299][2.299:375]()
    /* if (b->filedel.contents) */
    /* atomfree(&b->filedel.contents); */
    [2.299]
    [2.375]
    /* FIXME this is optional */
    atomfree(&b->filedel.contents);
  • replacement in hunk.c at line 76
    [2.523][2.523:576]()
    /* FIXME check for optional fileundel.contents */
    [2.523]
    [2.576]
    /* FIXME this is optional */
    atomfree(&b->fileundel.contents);
  • replacement in hunk.c at line 85
    [2.763][2.763:839]()
    /* if (b->fileadd.contents) */
    /* atomfree(&b->fileadd.contents); */
    [2.763]
    [2.839]
    /* FIXME this is optional */
    atomfree(&b->fileadd.contents);