Loss of blood, clot formation in leg and chances of getting infected are the risks involved in surgical procedure. But, the fact is that the amount of risk included is very small. It is recommended to have a discussion with the surgeon on this prior to replacement operation.
Few other risks include the chances that the parts may loosen or wear out over time, or infection to artificial joint. These problems are discussed with you in brief by your surgeon.