Segv


SUBMITTED BY: Guest

DATE: Dec. 20, 2013, 6:46 p.m.

FORMAT: C++

SIZE: 295 Bytes

HITS: 17944

  1. void returnVans(TTRAIN * train) {
  2. if (train == NULL)return;
  3. TVAN* now = train -> m_Start;
  4. train->m_Count = 0;
  5. train->m_Start = NULL;
  6. while(now!=NULL){
  7. free(now -> m_To);
  8. now = now -> m_Next;
  9. }
  10. return;
  11. }

comments powered by Disqus