Show
Ignore:
Timestamp:
2001-01-08 15:09:30 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Let check_sec.sh check for use of the unsafe malloc, realloc, free,
and strdup routines. While we are on it, plug some memory leaks and
make some code understandable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.c

    r2185 r2239  
    515515} 
    516516 
    517 void fgetconv_close (FGETCONV *_fc) 
    518 { 
    519   struct fgetconv_s *fc = (struct fgetconv_s *)_fc; 
     517void fgetconv_close (FGETCONV **_fc) 
     518{ 
     519  struct fgetconv_s *fc = (struct fgetconv_s *) *_fc; 
    520520 
    521521  if (fc->cd != (iconv_t)-1) 
    522522    iconv_close (fc->cd); 
    523   free (fc); 
    524 } 
     523  safe_free (_fc); 
     524}