summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTomas Mraz <tm@t8m.info>2005-09-17 08:32:27 +0000
committerTomas Mraz <tm@t8m.info>2005-09-17 08:32:27 +0000
commitc56638793ede5ac84067b9204d598bd6e0a7e34c (patch)
tree12bf4314e92320664487917f00b25b2fd9d83dba /modules
parent293ed7c5ad0c6cf75f5582e6d6f272c880fe62ab (diff)
Relevant BUGIDs:
Purpose of commit: cleanup Commit summary: --------------- More clear deallocation (by Dmitry V. Levin - ldv)
Diffstat (limited to 'modules')
-rw-r--r--modules/pam_motd/pam_motd.c5
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);