diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 04:58:38 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 04:58:38 +0000 |
commit | 84ab9d2cb369dc0b2af0da4d2dc66c03c0a3f0a2 (patch) | |
tree | 0e928847a492ffd764f304440a33dfffc6dbe3f4 /source3/param/params.c | |
parent | b50d10c2a313b45bbc195b13a353a20af0ab917a (diff) | |
download | samba-84ab9d2cb369dc0b2af0da4d2dc66c03c0a3f0a2.tar.gz samba-84ab9d2cb369dc0b2af0da4d2dc66c03c0a3f0a2.tar.bz2 samba-84ab9d2cb369dc0b2af0da4d2dc66c03c0a3f0a2.zip |
move to SAFE_FREE()
(This used to be commit fb0984e60fd69100d9866304b83b4f3c85e9aea2)
Diffstat (limited to 'source3/param/params.c')
-rw-r--r-- | source3/param/params.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/param/params.c b/source3/param/params.c index 9416965919..d12081fb32 100644 --- a/source3/param/params.c +++ b/source3/param/params.c @@ -121,8 +121,8 @@ static int mygetc(myFILE *f) static void myfile_close(myFILE *f) { if (!f) return; - if (f->buf) free(f->buf); - free(f); + SAFE_FREE(f->buf); + SAFE_FREE(f); } /* -------------------------------------------------------------------------- ** @@ -532,7 +532,7 @@ static myFILE *OpenConfFile( char *FileName ) DEBUG( lvl, ("%s Unable to open configuration file \"%s\":\n\t%s\n", func, FileName, strerror(errno)) ); - free(ret); + SAFE_FREE(ret); return NULL; } @@ -582,7 +582,7 @@ BOOL pm_process( char *FileName, return( False ); } result = Parse( InFile, sfunc, pfunc ); - free( bufr ); + SAFE_FREE( bufr ); bufr = NULL; bSize = 0; } |