Changeset 459 for trunk/src


Ignore:
Timestamp:
Aug 7, 2014, 9:15:02 PM (10 years ago)
Author:
katerina
Message:

Fix for ticket #360 (free on null pointer).

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_err_log.c

    r410 r459  
    598598        (*service_failure) = 1;
    599599      }
    600       SH_FREE(tmp);
     600      if (tmp)
     601        SH_FREE(tmp);
    601602      SL_RETURN(-1, _("sh_log_open"));
    602603    }
  • trunk/src/sh_mem.c

    r454 r459  
    444444    {
    445445      sh_error_handle ((-1), FIL__, __LINE__, 0, MSG_E_MNULL);
     446      SH_ABORT;
    446447    }
    447448  SL_RET0(_("sh_mem_free"));
     
    466467      /* use _exit() rather than exit() - we malloc() in atexit() 
    467468       */
     469      SH_ABORT;
    468470      _exit (EXIT_FAILURE);
    469471    }
Note: See TracChangeset for help on using the changeset viewer.