summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
Diffstat (limited to 'sutils')
-rw-r--r--sutils/fstab.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sutils/fstab.c b/sutils/fstab.c
index 7945cd5f..f2f57c58 100644
--- a/sutils/fstab.c
+++ b/sutils/fstab.c
@@ -144,9 +144,10 @@ fstypes_get (struct fstypes *types, const char *name, struct fstype **fstype)
if (stat.st_mode & S_IXUSR)
/* Yup execute bit is set. This must a program... */
break;
+
+ free (program);
}
- free (program);
program = 0;
}