Welcome to HCM,
As out side ejaculation doesn't protect you from STD's, you should avoid unprotected sex with your friend.
Pre-cum comes before ejaculation and can cause pregnancy
. Thus outside ejaculation is not completely safe regarding pregnancy.
If discharge is foul smelling, it can be due to infection.
As examination is required for diagnosis, you should consult a Gynecologist of your area for diagnosis and treatment.
Thanks for posting your query.
Hope you found my response to your query informative and helpful.
With good wishes,