Rice glue is basically made by dissolving rice in boiling water.
Thus, I hope you did not pour boiling water down that pipe.
I'm curious as to why your pipes should leak.
Anyway, I'd replace the U-trap and flush cold water down the line. You might save yourself the expense of a plumber.
I am not a plumber.