diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 11:25:41 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 11:25:41 +0000 |
commit | 61b2794968faa35dc91edce17e9b91e5366c3514 (patch) | |
tree | 3fd9ec24adcdf149263066754f5e51ac7a4e14e0 /source3/smbd/blocking.c | |
parent | 87945989c0383bd012be7ab8bc5920b6d03fa105 (diff) | |
download | samba-61b2794968faa35dc91edce17e9b91e5366c3514.tar.gz samba-61b2794968faa35dc91edce17e9b91e5366c3514.tar.xz samba-61b2794968faa35dc91edce17e9b91e5366c3514.zip |
move to SAFE_FREE()
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
Diffstat (limited to 'source3/smbd/blocking.c')
-rw-r--r-- | source3/smbd/blocking.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/blocking.c b/source3/smbd/blocking.c index 20085981046..cec15812543 100644 --- a/source3/smbd/blocking.c +++ b/source3/smbd/blocking.c @@ -46,8 +46,8 @@ static ubi_slList blocking_lock_queue = { NULL, (ubi_slNodePtr)&blocking_lock_qu static void free_blocking_lock_record(blocking_lock_record *blr) { - free(blr->inbuf); - free((char *)blr); + SAFE_FREE(blr->inbuf); + SAFE_FREE(blr); } /**************************************************************************** @@ -103,7 +103,7 @@ BOOL push_blocking_lock_request( char *inbuf, int length, int lock_timeout, int if((blr->inbuf = (char *)malloc(length)) == NULL) { DEBUG(0,("push_blocking_lock_request: Malloc fail (2)!\n" )); - free((char *)blr); + SAFE_FREE(blr); return False; } |