Changeset 4640:a115f3ac3b62 for buffy.c

Show
Ignore:
Timestamp:
2006-05-18 10:35:29 (3 years ago)
Author:
Rocco Rutte <pdmef@…>
Branch:
HEAD
Message:

Avoid safe_free() usage and add security checks

Add checks to check_sec.sh for memory functions.

These include a check for use of safe_free() instead of FREE() and a
check whether FREE(&...) is used.

For the former, SAFE_FREE_CHECKED is to be used, for the latter
FREE_CHECKED to avoid messages from check_sec.sh

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • buffy.c

    r4622 r4640  
    189189        FREE (&((*tmp)->path)); 
    190190        tmp1=(*tmp)->next; 
    191         FREE (tmp); 
     191        FREE (tmp);             /* __FREE_CHECKED__ */ 
    192192        *tmp=tmp1; 
    193193      } 
     
    213213        FREE (&((*tmp)->path)); 
    214214        tmp1=(*tmp)->next; 
    215         FREE (tmp); 
     215        FREE (tmp);             /* __FREE_CHECKED__ */ 
    216216        *tmp=tmp1; 
    217217      }