diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:08:45 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-01-01 12:22:02 +0100 |
commit | 12e6bbc7c90530b417e335917b872cbd2057cd78 (patch) | |
tree | c10a0efd098b3691236112e1701fd8996d5aacb0 /sutils | |
parent | fbe990dfeffd9a9fb3753299b7f632acf6bad037 (diff) | |
download | hurd-12e6bbc7c90530b417e335917b872cbd2057cd78.tar.gz hurd-12e6bbc7c90530b417e335917b872cbd2057cd78.tar.bz2 hurd-12e6bbc7c90530b417e335917b872cbd2057cd78.zip |
fstab: Fix memleak on error
Diffstat (limited to 'sutils')
-rw-r--r-- | sutils/fstab.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sutils/fstab.c b/sutils/fstab.c index 23089337..c10d6e18 100644 --- a/sutils/fstab.c +++ b/sutils/fstab.c @@ -163,6 +163,7 @@ fstypes_get (struct fstypes *types, const char *name, struct fstype **fstype) type->name = strdup (name); if (type->name == 0) { + free (program); free (type); return ENOMEM; } |