summaryrefslogtreecommitdiffstats
path: root/lib/exfat_fs.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:50:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 10:50:38 +0000
commit7fe458835c9817f1c5f3a57884220a9ca88b6a86 (patch)
tree64c0795b7d6ef15034944156a5520f2ea6290b91 /lib/exfat_fs.c
parentAdding upstream version 1.2.3. (diff)
downloadexfatprogs-7fe458835c9817f1c5f3a57884220a9ca88b6a86.tar.xz
exfatprogs-7fe458835c9817f1c5f3a57884220a9ca88b6a86.zip
Adding upstream version 1.2.4.upstream/1.2.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--lib/exfat_fs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/exfat_fs.c b/lib/exfat_fs.c
index be76e59..b24f532 100644
--- a/lib/exfat_fs.c
+++ b/lib/exfat_fs.c
@@ -128,8 +128,10 @@ struct exfat *exfat_alloc_exfat(struct exfat_blk_dev *blk_dev, struct pbr *bs)
struct exfat *exfat;
exfat = calloc(1, sizeof(*exfat));
- if (!exfat)
+ if (!exfat) {
+ free(bs);
return NULL;
+ }
INIT_LIST_HEAD(&exfat->dir_list);
exfat->blk_dev = blk_dev;