summaryrefslogtreecommitdiff
path: root/source3/lib/util.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-08-05 10:10:16 +0000
committerSimo Sorce <idra@samba.org>2001-08-05 10:10:16 +0000
commite485a1a4986c9328754b9a8b3054b8a6738b54f0 (patch)
treee769aabf19f50ce524b26584b1de5dee00a6ae7d /source3/lib/util.c
parentefe1d83dbbe8492f0077b2c354eb087e53e42cd7 (diff)
downloadsamba-e485a1a4986c9328754b9a8b3054b8a6738b54f0.tar.gz
samba-e485a1a4986c9328754b9a8b3054b8a6738b54f0.tar.bz2
samba-e485a1a4986c9328754b9a8b3054b8a6738b54f0.zip
Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder (This used to be commit b29a549cdd85d42a1697041ab04f0ae4eddd23ca)
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r--source3/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index 282e0e43fa..86c93e5ad0 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -524,7 +524,7 @@ SMB_OFF_T transfer_file(int infd,int outfd,SMB_OFF_T n,char *header,int headlen,
}
while (!buf && size>0) {
- buf = (char *)Realloc(buf,size+8);
+ buf = (char *)malloc(buf,size+8);
if (!buf) size /= 2;
}