Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/validation/sm_memory.c
          +++ new/usr/src/tools/smatch/src/validation/sm_memory.c
↓ open down ↓ 22 lines elided ↑ open up ↑
  23   23          }
  24   24          free(ac);
  25   25          return;
  26   26  }
  27   27  /*
  28   28   * check-name: leak test #1
  29   29   * check-command: smatch sm_memory.c
  30   30   *
  31   31   * check-output-start
  32   32  sm_memory.c:22 func() warn: possible memory leak of 'ac'
  33      -sm_memory.c:22 func() error: memory leak of 'ac'
  34   33   * check-output-end
  35   34   */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX