summaryrefslogtreecommitdiffstats
path: root/source/lib/util.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-08-05 16:26:24 +0000
committerSimo Sorce <idra@samba.org>2001-08-05 16:26:24 +0000
commitbeb48eb9514b7777a80bc49cba539051c838657a (patch)
treefdc27014a41ce5bd70dad8b1655f72c9d72c771c /source/lib/util.c
parentbcc89b048de25f8839f8817d06723c1d63462242 (diff)
downloadsamba-beb48eb9514b7777a80bc49cba539051c838657a.tar.gz
samba-beb48eb9514b7777a80bc49cba539051c838657a.tar.xz
samba-beb48eb9514b7777a80bc49cba539051c838657a.zip
Some fixes about malloc/Realloc and mem leak
thanks to andreas moroder (this builds ok)
Diffstat (limited to 'source/lib/util.c')
-rw-r--r--source/lib/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util.c b/source/lib/util.c
index 2fa680898ae..fd1299701e7 100644
--- a/source/lib/util.c
+++ b/source/lib/util.c
@@ -539,7 +539,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(size+8);
if (!buf) size /= 2;
}