If it was controlled then namaz and wudhu are in order but if from beginning if some one feels and started prayer and prayed then still namaz is correct and in order but this act is makrooh.
If someone passes gas or urinate then yes wudhu is also batil.