In Perl_rename() we were allocating the same thing twice.
In vms_fid_to_name() (used by realpath() and realname()), we had
another flagrant omission of freeing local storage.
}
/* The source must be a file specification */
- vms_dir_file = PerlMem_malloc(VMS_MAXRSS);
- if (vms_dir_file == NULL)
- _ckvmssts_noperl(SS$_INSFMEM);
-
ret_str = do_fileify_dirspec(vms_dst, vms_dir_file, 0, NULL);
if (ret_str == NULL) {
PerlMem_free(vms_dst);
if (mode) {
*mode = statbuf.old_st_mode;
}
- return 0;
}
}
+ PerlMem_free(temp_fspec);
+ PerlMem_free(fileified);
return sts;
}