Make sure we free memory allocated by rdp_in_unistr()

git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/rdesktop/trunk@1774 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Henrik Andersson 2013-12-06 13:36:00 +00:00
parent f0b6604347
commit fe10877ed5

2
disk.c
View File

@ -832,6 +832,8 @@ disk_set_information(RD_NTHANDLE handle, uint32 info_class, STREAM in, STREAM ou
sprintf(fullpath, "%s%s", g_rdpdr_device[pfinfo->device_id].local_path,
newname);
free(newname);
if (rename(pfinfo->path, fullpath) != 0)
{
perror("rename");