From c56638793ede5ac84067b9204d598bd6e0a7e34c Mon Sep 17 00:00:00 2001 From: Tomas Mraz Date: Sat, 17 Sep 2005 08:32:27 +0000 Subject: Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- More clear deallocation (by Dmitry V. Levin - ldv) --- modules/pam_motd/pam_motd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'modules') diff --git a/modules/pam_motd/pam_motd.c b/modules/pam_motd/pam_motd.c index 88a334d8..552c4fc0 100644 --- a/modules/pam_motd/pam_motd.c +++ b/modules/pam_motd/pam_motd.c @@ -93,14 +93,11 @@ int pam_sm_open_session(pam_handle_t *pamh, int flags, else mtmp[st.st_size] = '\0'; - pam_info (pamh, "%s", mtmp); - _pam_drop (mtmp); - break; } - free(mtmp); + _pam_drop (mtmp); if (fd >= 0) close(fd); -- cgit v1.2.3