diff options
author | Jeremy Allison <jra@samba.org> | 2004-02-13 22:35:02 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2004-02-13 22:35:02 +0000 |
commit | 78c2b8fe472e1436d231bf32a0f2622993bfb136 (patch) | |
tree | dabb904899a26e54b520c97ad4df0814dbb6af85 /source3 | |
parent | 3122f76d3db28b123459f5966f4ef03b56b16642 (diff) | |
download | samba-78c2b8fe472e1436d231bf32a0f2622993bfb136.tar.gz samba-78c2b8fe472e1436d231bf32a0f2622993bfb136.tar.bz2 samba-78c2b8fe472e1436d231bf32a0f2622993bfb136.zip |
Typo (missed SAFE_FREE).,
Jeremy.
(This used to be commit dd014ab358e861f3828cb34c09c5800606c8da59)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/util_str.c | 3 |
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); } |