summaryrefslogtreecommitdiffstats
path: root/source/smbd/error.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
committerJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
commit26e4c4099c61c7ba9f2153e56061bea9882553d9 (patch)
treeb68969a82c21508f28f511fc7263e5242351e47c /source/smbd/error.c
parent5e3491784277dd90180ef199d2fa258614958545 (diff)
downloadsamba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.gz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.xz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.zip
Get religion on using SAFE_FREE.
Jeremy.
Diffstat (limited to 'source/smbd/error.c')
-rw-r--r--source/smbd/error.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/smbd/error.c b/source/smbd/error.c
index 3c829deb09d..78425fafc66 100644
--- a/source/smbd/error.c
+++ b/source/smbd/error.c
@@ -37,8 +37,7 @@ int cached_error_packet(char *outbuf,files_struct *fsp,int line,const char *file
int32 err = wbmpx->wr_error;
/* We can now delete the auxiliary struct */
- free((char *)wbmpx);
- fsp->wbmpx_ptr = NULL;
+ SAFE_FREE((char *)wbmpx);
return error_packet(outbuf,NT_STATUS_OK,eclass,err,line,file);
}