summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw_dir.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-10-11 12:33:26 +0000
committerSimo Sorce <idra@samba.org>2001-10-11 12:33:26 +0000
commit49307c26789b3061780d160f4c6fa4863853eddd (patch)
treeda63221adcfa07ead7e7ec93b788a54b6c00c5bc /source3/smbwrapper/smbw_dir.c
parent8edc45ec4c467e5069875808d0abd9452e7b056c (diff)
downloadsamba-49307c26789b3061780d160f4c6fa4863853eddd.tar.gz
samba-49307c26789b3061780d160f4c6fa4863853eddd.tar.bz2
samba-49307c26789b3061780d160f4c6fa4863853eddd.zip
remove unused function in mangle.c
fix some alloc leaks spotted by andreas moroder. (This used to be commit 39409a20f69078709c63f6f867c042e66d5c7de3)
Diffstat (limited to 'source3/smbwrapper/smbw_dir.c')
-rw-r--r--source3/smbwrapper/smbw_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c
index cd10b488a1..6be88e4df3 100644
--- a/source3/smbwrapper/smbw_dir.c
+++ b/source3/smbwrapper/smbw_dir.c
@@ -87,7 +87,7 @@ static void smbw_dir_add(struct file_info *finfo, const char *mask,
cdl = (struct file_info *)Realloc(cur_dir->list,
sizeof(cur_dir->list[0])*
(cur_dir->count+100));
- if (!cur_dir->list) {
+ if (!cdl) {
/* oops */
return;
}