The tank flap of an automobile is locked via a wire spring with which an extension connected to the tank flap will cooperate. A spring-biased locking body keeps the wire spring in the releasing position when the tank flap initially is forced inwards.