Where was The Sadistic Baron Von Klaus filmed?

1962 film by Jesús Franco

The Sadistic Baron Von Klaus (1962) was filmed in Huesca and Castle of San Martín de Valdeiglesias, 2 places named in its Wikipedia article, in Spain. Wikidata records no filming location for it at all, so the article is the only recorded source. Each place says where its claim comes from.

See them on the map → Wikipedia Source data

Places per Wikipedia's article

The Wikipedia article names 2 places. Each links to the sentence that says so.