]> err.no Git - util-linux/commit
login: fix a small memory leak and remove unnecessary zeroing
authorKarel Zak <kzak@redhat.com>
Mon, 28 Jan 2008 13:02:35 +0000 (14:02 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 28 Jan 2008 13:07:16 +0000 (14:07 +0100)
commit30568eec590764ab5cdd263a054df2c9fa38286f
tree79178937e58d78214737032d3cc50e91bc29a4bd
parent603815e03dfdf906ece9fa37af76371667200d18
login: fix a small memory leak and remove unnecessary zeroing

This patch fix a small memory leak (rh#251539) and also remove
unnecessary pam_set_item(). We needn't to zeroing PAM_USER when the
value is already NULL, it doesn't make sense.

Addresses-Red-Hat-Bugzilla: #251539
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/login.c