When pus is coming out of a wound by the knee, the wound is likely infected. If the knee cannot bend, this can be due to infection or a fracture commonly. In both cases, the problem should be seen by a doctor emergently to determine the specific treatment.