~crass/samhain/trunk

« back to all changes in this revision

Viewing changes to src/sh_err_log.c

  • Committer: katerina
  • Date: 2014-08-07 19:15:02 UTC
  • Revision ID: svn-v4:90a4cbc2-0407-0410-83b7-83702fd2185f:trunk:459
Fix for ticket #360 (free on null pointer).

Show diffs side-by-side

added added

removed removed

Lines of Context:
597
597
                         _("logfile"), tmp);
598
598
        (*service_failure) = 1;
599
599
      }
600
 
      SH_FREE(tmp);
 
600
      if (tmp)
 
601
        SH_FREE(tmp);
601
602
      SL_RETURN(-1, _("sh_log_open"));
602
603
    }
603
604