git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b7c44
)
Fix an error path memleak
author
Volker Lendecke
<vl@samba.org>
Sun, 25 Jan 2009 19:33:22 +0000
(20:33 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sun, 25 Jan 2009 19:52:42 +0000
(20:52 +0100)
source3/libsmb/clifile.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/clifile.c
b/source3/libsmb/clifile.c
index 04bbabe0874e568eca62aefa2ee24d3a63e01a2f..ecb2bf0f5a31101b71878127794dc0bff769240a 100644
(file)
--- a/
source3/libsmb/clifile.c
+++ b/
source3/libsmb/clifile.c
@@
-814,6
+814,7
@@
uint8_t *smb_bytes_push_str(uint8_t *buf, bool ucs2, const char *str)
buf = TALLOC_REALLOC_ARRAY(NULL, buf, uint8_t,
buflen + converted_size);
if (buf == NULL) {
+ TALLOC_FREE(converted);
return NULL;
}