Changeset 4640:a115f3ac3b62 for mh.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
  • mh.c

    r4632 r4640  
    223223  if ((*fp = fdopen (fd, "w")) == NULL) 
    224224  { 
    225     FREE (tgt); 
     225    FREE (tgt);         /* __FREE_CHECKED__ */ 
    226226    close (fd); 
    227227    unlink (path); 
     
    489489    mutt_free_header (&(*md)->h); 
    490490 
    491   FREE (md); 
     491  FREE (md);            /* __FREE_CHECKED__ */ 
    492492} 
    493493