Yes, but just about every fantasy writer has been blamed for stealing from Tolkien and Lewis.
I think it was the movie reviews that did more comparison of Dobby and Gollum.
Tolkien and Wagner stole the Ring from the same sources.
There are only a few stories.