Changeset View
Changeset View
Standalone View
Standalone View
ksysguardd/conf.c
Show All 32 Lines | |||||
33 | CONTAINER SensorList = 0; | 33 | CONTAINER SensorList = 0; | ||
34 | 34 | | |||
35 | void LogFileList_cleanup( void *ptr ); | 35 | void LogFileList_cleanup( void *ptr ); | ||
36 | void freeConfigFile( void ); | 36 | void freeConfigFile( void ); | ||
37 | 37 | | |||
38 | void LogFileList_cleanup( void *ptr ) | 38 | void LogFileList_cleanup( void *ptr ) | ||
39 | { | 39 | { | ||
40 | if ( ptr ) { | 40 | if ( ptr ) { | ||
41 | if ( ((ConfigLogFile*)ptr)->name ) | | |||
42 | free( ((ConfigLogFile*)ptr)->name ); | 41 | free( ((ConfigLogFile*)ptr)->name ); | ||
43 | | ||||
44 | free( ptr ); | | |||
45 | } | 42 | } | ||
43 | free( ptr ); | ||||
46 | } | 44 | } | ||
47 | 45 | | |||
48 | void freeConfigFile( void ) | 46 | void freeConfigFile( void ) | ||
49 | { | 47 | { | ||
50 | destr_ctnr( LogFileList, LogFileList_cleanup ); | 48 | destr_ctnr( LogFileList, LogFileList_cleanup ); | ||
51 | destr_ctnr( SensorList, free ); | 49 | destr_ctnr( SensorList, free ); | ||
52 | } | 50 | } | ||
53 | 51 | | |||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |