diff options
Diffstat (limited to 'libpam/pam_modutil_getpwnam.c')
-rw-r--r-- | libpam/pam_modutil_getpwnam.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libpam/pam_modutil_getpwnam.c b/libpam/pam_modutil_getpwnam.c index 012c9ec8..9c96150b 100644 --- a/libpam/pam_modutil_getpwnam.c +++ b/libpam/pam_modutil_getpwnam.c @@ -44,9 +44,7 @@ pam_modutil_getpwnam(pam_handle_t *pamh, const char *user) D(("out of memory")); /* no memory for the user - so delete the memory */ - if (buffer) { - free(buffer); - } + free(buffer); return NULL; } buffer = new_buffer; |