Fix device prompt quistion.
authorMilan Broz <gmazyland@gmail.com>
Mon, 22 Jun 2009 12:38:08 +0000 (12:38 +0000)
committerMilan Broz <gmazyland@gmail.com>
Mon, 22 Jun 2009 12:38:08 +0000 (12:38 +0000)
(fixes missing patch chunk in previous commit)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@58 36d66b0a-2a48-0410-832c-cd162a569da5

lib/setup.c

index 78178ae..31ec99d 100644 (file)
@@ -588,11 +588,12 @@ start:
  out1:
        safe_free(password);
  out:
-       free(prompt);
        LUKS_dealloc_masterkey(mk);
        if (r == -EPERM && tries > 0)
                goto start;
 
+       free(prompt);
+
        return r;
 }