git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91cc4a1
)
Missed SAFE_FREE (typo).
author
Jeremy Allison
<jra@samba.org>
Fri, 13 Feb 2004 22:34:29 +0000
(22:34 +0000)
committer
Jeremy Allison
<jra@samba.org>
Fri, 13 Feb 2004 22:34:29 +0000
(22:34 +0000)
Jeremy.
(This used to be commit
ac1d03c05bf6247541fbd6f0c3bd5b2e5b6a5212
)
source3/lib/util_str.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_str.c
b/source3/lib/util_str.c
index cde6b2e7a1728fadeb127efea896d3f886f610c0..71c8d56e403ee51d63fe0280d95fad9e65c46400 100644
(file)
--- 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);
}