diff options
author | Tomas Mraz <tm@t8m.info> | 2005-09-17 08:32:27 +0000 |
---|---|---|
committer | Tomas Mraz <tm@t8m.info> | 2005-09-17 08:32:27 +0000 |
commit | c56638793ede5ac84067b9204d598bd6e0a7e34c (patch) | |
tree | 12bf4314e92320664487917f00b25b2fd9d83dba /modules/pam_motd/pam_motd.c | |
parent | 293ed7c5ad0c6cf75f5582e6d6f272c880fe62ab (diff) | |
download | pam-c56638793ede5ac84067b9204d598bd6e0a7e34c.tar.gz pam-c56638793ede5ac84067b9204d598bd6e0a7e34c.tar.bz2 pam-c56638793ede5ac84067b9204d598bd6e0a7e34c.zip |
Relevant BUGIDs:
Purpose of commit: cleanup
Commit summary:
---------------
More clear deallocation (by Dmitry V. Levin - ldv)
Diffstat (limited to 'modules/pam_motd/pam_motd.c')
-rw-r--r-- | modules/pam_motd/pam_motd.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); |