X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ffile-name.c;h=afc99a88250f348d35b576e1a207031e6680e658;hb=66c6a01f07a24f090e9bd17358fe7110a9f481eb;hp=1c47b4751bd2cff865709fb000e02b20bc47838c;hpb=d6cbbc8d634fa91f050661355139a4e4697e99ab;p=pspp diff --git a/src/data/file-name.c b/src/data/file-name.c index 1c47b4751b..afc99a8825 100644 --- a/src/data/file-name.c +++ b/src/data/file-name.c @@ -101,7 +101,7 @@ fn_search_path (const char *base_name, char **path) struct stat temp; if (( (stat (file, &temp) == 0 ) && ( ! S_ISDIR (temp.st_mode) ))) return file; - + free (file); } @@ -199,9 +199,9 @@ fn_open (const struct file_handle *fh, const char *mode) free (ss); return fp; } -#else +#else return fopen (fn, mode); -#endif +#endif } /* Counterpart to fn_open that closes file F with name FN; returns 0