From: Volker Lendecke Date: Sun, 25 Jan 2009 19:33:22 +0000 (+0100) Subject: Fix an error path memleak X-Git-Url: http://git.samba.org/?p=metze%2Fsamba%2Fwip.git;a=commitdiff_plain;h=6baf760d176cc5ea8eb0cba6d68171f1950c1b75 Fix an error path memleak --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 04bbabe0874e..ecb2bf0f5a31 100644 --- 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; }