git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2775c52
)
s3-charcnv: always talloc_free in convert_string_talloc() error path.
author
Günther Deschner
<gd@samba.org>
Mon, 8 Jun 2009 08:40:57 +0000
(10:40 +0200)
committer
Günther Deschner
<gd@samba.org>
Mon, 8 Jun 2009 08:44:50 +0000
(10:44 +0200)
Guenther
source3/lib/charcnv.c
patch
|
blob
|
history
diff --git
a/source3/lib/charcnv.c
b/source3/lib/charcnv.c
index bb9b2054d10e1b69d59609653931deaab2bf53a9..791c866b57658b917b7efd75c6f99a9c3082a8fa 100644
(file)
--- a/
source3/lib/charcnv.c
+++ b/
source3/lib/charcnv.c
@@
-586,8
+586,7
@@
bool convert_string_talloc(TALLOC_CTX *ctx, charset_t from, charset_t to,
/* wrapped ! abort. */
if (!conv_silent)
DEBUG(0, ("convert_string_talloc: destlen wrapped !\n"));
- if (!ctx)
- TALLOC_FREE(outbuf);
+ TALLOC_FREE(outbuf);
errno = EOPNOTSUPP;
return false;
} else {