1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-27 22:50:26 +03:00

Typo (missed SAFE_FREE).,

Jeremy.
(This used to be commit dd014ab358e861f3828cb34c09c5800606c8da59)
This commit is contained in:
Jeremy Allison 2004-02-13 22:35:02 +00:00
parent 3122f76d3d
commit 78c2b8fe47

View File

@ -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);
}