don't free an array on the stack
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Aug 2009 04:23:49 +0000 (21:23 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 13 Aug 2009 04:23:49 +0000 (21:23 -0700)
bti.c

diff --git a/bti.c b/bti.c
index bf01e72..02332c4 100644 (file)
--- a/bti.c
+++ b/bti.c
@@ -1144,7 +1144,6 @@ int main(int argc, char *argv[], char *envp[])
        if (!session->password) {
                read_password(password, sizeof(password));
                session->password = strdup(password);
-               free(password);
        }
 
        if (session->action == ACTION_UPDATE) {