Get the featured image url of clicked post

It seems you are using this outside the loop then use get_the_post_thumbnail to get the featured image for any post by supplying post id.

So your code will become this.

<?php
    if ( has_post_thumbnail() ) {
        echo '<a href="' . get_permalink( $post->ID ) . '" >';
            echo get_the_post_thumbnail( $post->ID, 'my_feature_image', array( 'class' => "someName" ) );
        echo '</a>';
    }
?>