They are both correct. They don't mean exactly the same though.
The first one means that, in general, whenever I am free I can help you.
The second has a future meaning: "when I am free, after I have finished what I am doing now, I will be able to help you.