From: Tomas Mraz Date: Sat, 17 Sep 2005 08:32:27 +0000 (+0000) Subject: Relevant BUGIDs: X-Git-Tag: help~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c56638793ede5ac84067b9204d598bd6e0a7e34c;p=linux-pam Relevant BUGIDs: Purpose of commit: cleanup Commit summary: --------------- More clear deallocation (by Dmitry V. Levin - ldv) --- 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);