]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
disk/geli: Add missing free.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 20:47:51 +0000 (21:47 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 20:47:51 +0000 (21:47 +0100)
Found by: Coverity scan.

grub-core/disk/geli.c

index bf73fbde882448d2bbd1b867bb237e8f3f84950a..e9d23299a538d48c2165fa507b59a96ce692782c 100644 (file)
@@ -232,7 +232,10 @@ grub_util_get_geli_uuid (const char *dev)
 
   err = make_uuid ((void *) &hdr, uuid);
   if (err)
-    return NULL;
+    {
+      grub_free (uuid);
+      return NULL;
+    }
 
   return uuid;
 }