Changeset 123


Ignore:
Timestamp:
Nov 15, 2005, 10:01:51 AM (14 years ago)
Author:
bcornec
Message:

Fix a memory free problem in libmondo-devices.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.05/mondo/mondo/common/libmondo-devices.c

    r102 r123  
    481481    /*@ buffers ************************************************************/
    482482  char *tmp;
     483  bool ret;
    483484
    484485  malloc_string(tmp);
     
    487488  sprintf (tmp, "ls %s > /dev/null 2> /dev/null", device);
    488489 
     490  if (system (tmp))
     491    {
     492      ret = FALSE;
     493    }
     494  else
     495    {
     496      ret = TRUE;
     497    }
    489498  paranoid_free(tmp);
    490   if (system (tmp))
    491     {
    492       return (FALSE);
    493     }
    494   else
    495     {
    496       return (TRUE);
    497     }
     499  return(ret);
    498500}
    499501
Note: See TracChangeset for help on using the changeset viewer.