]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorTomas Mraz <tm@t8m.info>
Sat, 17 Sep 2005 08:32:27 +0000 (08:32 +0000)
committerTomas Mraz <tm@t8m.info>
Sat, 17 Sep 2005 08:32:27 +0000 (08:32 +0000)
Purpose of commit: cleanup

Commit summary:
---------------
More clear deallocation (by Dmitry V. Levin - ldv)

modules/pam_motd/pam_motd.c

index 88a334d83bcdcb5e57180685806f69152b01ab0c..552c4fc0a82f2a3dd6b6c2740a7ad0be9c362a16 100644 (file)
@@ -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);