diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-10-12 17:34:43 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-10-12 17:34:43 +0200 |
commit | 1b99d8fbb591bedb375c1251d5d29a5674e1b74a (patch) | |
tree | 5e4cf4d115081057750349373184ad7df8894e61 /source3/param/params.c | |
parent | 652f0e601da0d1d2e2c8b9281bbee9fa399d9877 (diff) | |
download | samba-1b99d8fbb591bedb375c1251d5d29a5674e1b74a.tar.gz samba-1b99d8fbb591bedb375c1251d5d29a5674e1b74a.tar.bz2 samba-1b99d8fbb591bedb375c1251d5d29a5674e1b74a.zip |
Use common util_file code.
Diffstat (limited to 'source3/param/params.c')
-rw-r--r-- | source3/param/params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/param/params.c b/source3/param/params.c index 478376c9e9..97db613fc4 100644 --- a/source3/param/params.c +++ b/source3/param/params.c @@ -118,7 +118,7 @@ static void myfile_close(myFILE *f) { if (!f) return; - SAFE_FREE(f->buf); + TALLOC_FREE(f->buf); SAFE_FREE(f); } @@ -525,7 +525,7 @@ static myFILE *OpenConfFile( const char *FileName ) if (!ret) return NULL; - ret->buf = file_load(FileName, &ret->size, 0); + ret->buf = file_load(FileName, &ret->size, 0, NULL); if( NULL == ret->buf ) { DEBUG( lvl, ("%s Unable to open configuration file \"%s\":\n\t%s\n", func, FileName, strerror(errno)) ); |