Question: where is utmp entry deleted at logout?

Stef Bon <[email protected]> Tue, 11 Oct 2005 11:29:43 +0200
Newsgroups gmane.linux.pld.shadow.general
Message-ID <[email protected]>
Hello,

I'm looking in the code of login of the latest versions of shadow 
(4.0.11/4.0.13) for the code where the utmp-record is deleted when the login 
session ends.

I've found in the source where the utmpentry (shadow-4.0.13, login.c line 903 
with PAM) is written when logging in, but  where is it deleted?
(I assume records are deleted when a session ends)

Stef Bon