summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-02-13 22:34:29 +0000
committerJeremy Allison <jra@samba.org>2004-02-13 22:34:29 +0000
commit142ef0e8294fcdd5f9719a59cf83c222418f36d9 (patch)
tree8e82120361f7fe746f16bb336ff68ff8a5a04c6c /source3/lib
parent91cc4a1900bf1e95244f178b6e76edf534f6186a (diff)
downloadsamba-142ef0e8294fcdd5f9719a59cf83c222418f36d9.tar.gz
samba-142ef0e8294fcdd5f9719a59cf83c222418f36d9.tar.bz2
samba-142ef0e8294fcdd5f9719a59cf83c222418f36d9.zip
Missed SAFE_FREE (typo).
Jeremy. (This used to be commit ac1d03c05bf6247541fbd6f0c3bd5b2e5b6a5212)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c
index cde6b2e7a1..71c8d56e40 100644
--- a/source3/lib/util_str.c
+++ b/source3/lib/util_str.c
@@ -557,7 +557,7 @@ size_t count_chars(const char *s,char c)
{
smb_ucs2_t *ptr;
int count;
- smb_ucs2_t *alloc_tmpbuf;
+ smb_ucs2_t *alloc_tmpbuf = NULL;
if (push_ucs2_allocate(&alloc_tmpbuf, s) == (size_t)-1) {
return 0;
@@ -567,6 +567,7 @@ size_t count_chars(const char *s,char c)
if(*ptr==UCS2_CHAR(c))
count++;
+ SAFE_FREE(alloc_tmpbuf);
return(count);
}