client-common: fix memory leak in case of error out.

This commit is contained in:
Zhang Zhaolong
2014-04-26 12:19:28 +08:00
parent cb2fc70a5d
commit 5cb7819830

View File

@@ -674,6 +674,7 @@ BOOL freerdp_client_write_rdp_file(const rdpFile* file, const char* name, BOOL u
if (freerdp_client_write_rdp_file_buffer(file, buffer, length + 1) != length)
{
fprintf(stderr, "freerdp_client_write_rdp_file: error writing to output buffer\n");
free(buffer);
return FALSE;
}