- 
                Notifications
    You must be signed in to change notification settings 
- Fork 396
Fix bugs in duplication of CPTs #3625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The API functions to duplicate a CPT had double allocations and freeing of strings using the wrong functions.
| All the CI jobs are failing now. The error is:  | 
| What does that mean? I ran the full test locally and only grdgdal failed. | 
| It possibly means there are some technical issues in Azure Pipelines. We have to wait for their fix. | 
| Shell I change the branch to master for this and then you backport, @seisman ? | 
| Yes, | 
| Done. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Blindly approve. @PaulWessel feel free to merge it if you're confident about the PR.
The CI issue was possibly fixed a few hours ago, and may be working in next few days.
| I will run all tests on macOS and CentOS first, locally. MacOs had no failures, awaiting slower laptop... | 
| I have merged this branch @seisman | 
| So this means 6.1 is definitively dead? | 
* Fix bugs in duplication of CPTs The API functions to duplicate a CPT had double allocations and freeing of strings using the wrong functions. * Update gmt_support.c * Update gmt_support.c * Missing -h in docs * Add named constants
| backport to 6.1 is done. | 
The API functions to duplicate a CPT had double allocations and freeing of strings using the wrong functions. Also replace mysterious bit-values with named constants for readability. The man ages for makecpt and grd2cpt did not list the -h option (needed if you want to write CPT comments on output) and grd2cpt did not list the option (but did support it). A few minor correction to obscure test scripts that used awk to build cpts from parts. Closes #3613.