OP,
First thing is to fix the leaking pipe - so wash clean the exposed pipe and determine the cause or causes of the leak. Search for other cracks, & then fix the pipe. Do you know how?
At the moment, where the leak water is coming from is irrelevant.
If you were leaking sewage you would...