summaryrefslogtreecommitdiffstats
path: root/source/smbd/error.c
diff options
context:
space:
mode:
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);
}