Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/gmt_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,7 @@ GMT_LOCAL int gmtremote_get_url (struct GMT_CTRL *GMT, char *url, char *file, ch

if (!query) { /* Remove lock file after successful download */
gmtlib_file_unlock (GMT, fileno(fp));
fclose(fp);
gmt_remove_file (GMT, Lfile);
gmt_M_str_free (Lfile);
}
Expand Down Expand Up @@ -1201,6 +1202,7 @@ int gmt_download_file (struct GMT_CTRL *GMT, const char *name, char *url, char *

if (!query) { /* Remove lock file after successful download */
gmtlib_file_unlock (GMT, fileno(fp));
fclose(fp);
gmt_remove_file (GMT, Lfile);
gmt_M_str_free (Lfile);
}
Expand Down