Skip to content

Commit 0a6ef78

Browse files
committed
luks: Add missing free(h) along error path
Fixes: commit 468919d (cherry picked from commit 73ccb80)
1 parent 3cceda0 commit 0a6ef78

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

filters/luks/luks-encryption.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ load_header (nbdkit_next *next, const char *passphrase)
766766
}
767767
if (ks->stripes >= 10000) {
768768
nbdkit_error ("bad LUKSv1 header: key slot %zu stripes too large", i);
769+
free (h);
769770
return NULL;
770771
}
771772
start = ks->key_material_offset;

0 commit comments

Comments
 (0)