summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-06-11 05:36:42 +0000
committerRoland McGrath <roland@gnu.org>1999-06-11 05:36:42 +0000
commit4d25e0704a50c9053570559f15fed3193da6fc8b (patch)
tree385b144c24a4f311041ae4ecfc77aafe1fb22475
parent37f880a27bf2cd70c0ad247886fc5b949d776096 (diff)
1999-06-11 Roland McGrath <roland@baalperazim.frob.com>
* fstab.c (fstypes_get): Don't free PROGRAM twice on ENOENT failure.
-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;
}