Showing test case failed

I am practicing this question from leetcode…160. Intersection of Two Linked Lists

This is my code… https://ide.codingblocks.com/s/317076
Although it has passes some test cases … But showing wrong answer .
https://ibb.co/7zN7TKC (<- screenshot of wrong answer).
How should i fix this.

hello @ashishnnnnn
i have done the correction in your code please go through it and find your mistske.
Try resubmitting it on leetcode .
link for the correct code https://ide.codingblocks.com/s/317549
Happy Learning !!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.