regedit: Fix a memory leak in export handling.

This commit is contained in:
Alexander Nicolaysen Sørnes 2008-09-03 17:44:48 +02:00 committed by Alexandre Julliard
parent 5defba1165
commit 92e9b1edcf
1 changed files with 1 additions and 0 deletions

View File

@ -1165,6 +1165,7 @@ BOOL export_registry_key(CHAR *file_name, CHAR *reg_key_name)
fclose(file); fclose(file);
} }
HeapFree(GetProcessHeap(), 0, reg_key_name); HeapFree(GetProcessHeap(), 0, reg_key_name);
HeapFree(GetProcessHeap(), 0, val_name_buf);
HeapFree(GetProcessHeap(), 0, val_buf); HeapFree(GetProcessHeap(), 0, val_buf);
return TRUE; return TRUE;
} }