X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ffile-handle-def.c;h=4c4820cb12a08fddfc025890fd1f02afd45bb035;hb=71ca6750d4f402feb0f3c630ba8d12eb73ef2216;hp=f058a0075222881231bbadd7ebefc5c00477948b;hpb=d6cbbc8d634fa91f050661355139a4e4697e99ab;p=pspp diff --git a/src/data/file-handle-def.c b/src/data/file-handle-def.c index f058a00752..4c4820cb12 100644 --- a/src/data/file-handle-def.c +++ b/src/data/file-handle-def.c @@ -522,7 +522,7 @@ fh_lock (struct file_handle *h, enum fh_referent mask UNUSED, return NULL; } lock->open_cnt++; - + free_key (key); free (key); @@ -709,7 +709,7 @@ fh_get_identity (const struct file_handle *fh) struct file_identity *identity = xmalloc (sizeof *identity); const char *file_name = fh_get_file_name (fh); - + #if !(defined _WIN32 || defined __WIN32__) struct stat s; if (lstat (file_name, &s) == 0) @@ -761,7 +761,7 @@ fh_get_identity (const struct file_handle *fh) size_t bufsize; size_t pathlen = 255; char *cname = NULL; - do + do { bufsize = pathlen; cname = xrealloc (cname, bufsize);