Show
Ignore:
Timestamp:
06/20/09 11:53:23 (5 years ago)
Author:
khali
Message:

sensord, sensors: Fix a memory leak when one or more chip names are
provided on the command line.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/branches/lm-sensors-2.10/prog/sensord/sensord.c

    r5572 r5738  
    200200   
    201201  if (initLib () || 
    202       loadLib ()) 
    203     exit (EXIT_FAILURE); 
     202      loadLib ()) { 
     203    freeChips (); 
     204    exit (EXIT_FAILURE); 
     205  } 
    204206 
    205207  if (isDaemon) 
     
    226228  } 
    227229   
     230  freeChips (); 
    228231  if (unloadLib ()) 
    229232    exit (EXIT_FAILURE);