physfs.c
changeset 25 96b32c0fd7f3
parent 23 bd6ba9c8717c
child 27 e1d3292769b2
equal deleted inserted replaced
24:b050804123a3 25:96b32c0fd7f3
   150     ErrMsg *i;
   150     ErrMsg *i;
   151     ErrMsg *next;
   151     ErrMsg *next;
   152 
   152 
   153     for (i = errorMessages; i != NULL; i = next)
   153     for (i = errorMessages; i != NULL; i = next)
   154     {
   154     {
   155         next = i;
   155         next = i->next;
   156         free(i);
   156         free(i);
   157     } /* for */
   157     } /* for */
   158 } /* freeErrorMessages */
   158 } /* freeErrorMessages */
   159 
   159 
   160 
   160 
   412 
   412 
   413     if (searchPath != NULL)
   413     if (searchPath != NULL)
   414     {
   414     {
   415         for (i = searchPath; i != NULL; i = next)
   415         for (i = searchPath; i != NULL; i = next)
   416         {
   416         {
   417             next = i;
   417             next = i->next;
   418             freeDirInfo(i, openReadList);
   418             freeDirInfo(i, openReadList);
   419         } /* for */
   419         } /* for */
   420         searchPath = NULL;
   420         searchPath = NULL;
   421     } /* if */
   421     } /* if */
   422 } /* freeSearchPath */
   422 } /* freeSearchPath */