Cosmetic fix for a cracked wooden window sill
Any wood filler that cures will be fine. (Avoid things labeled "non hardening"... these sometimes have "putty" in the name.) Sand it smooth (120 grit sandpaper, with the grain), then try your best to match the paint.

That does look like it's about to break off, though. Don't lean on it any more.