Skip to content

Commit

Permalink
Merge pull request exfatprogs#260 from exfatprogs/exfat-next
Browse files Browse the repository at this point in the history
Merge patches in exfat-next branch to master for 1.2.4 release
  • Loading branch information
namjaejeon authored Jun 17, 2024
2 parents 3d5cdcc + 9091dff commit 26e2afd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
exfatprogs 1.2.4 - released 2024-06-17
======================================

BUG FIXES :
* tune.exfat: Fix "invalid serial number" error when
setting an serial number.
* fsck.exfat: Fix memory leak in an error path

exfatprogs 1.2.3 - released 2024-05-23
======================================

Expand Down
2 changes: 1 addition & 1 deletion include/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

#ifndef _VERSION_H

#define EXFAT_PROGS_VERSION "1.2.3"
#define EXFAT_PROGS_VERSION "1.2.4"

#endif /* !_VERSION_H */
4 changes: 3 additions & 1 deletion lib/exfat_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions lib/libexfat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,8 @@ int exfat_parse_ulong(const char *s, unsigned long *out)
{
char *endptr;

errno = 0;

*out = strtoul(s, &endptr, 0);

if (errno)
Expand Down

0 comments on commit 26e2afd

Please sign in to comment.