Ticket #2301 (closed defect: fixed)
thinplatespline : memory allocated with 'calloc' freed with 'delete'
| Reported by: | rouault | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.4.5 |
| Component: | default | Version: | 1.4.0 |
| Severity: | normal | Keywords: | tps |
| Cc: | warmerdam |
Description
The _AA and _Ainv member arrays in thinplatespline.h are allocated with 'calloc' and freed with 'delete'.
Apart from making Valgrind verbose, that imbalance can lead to undefined behaviour, potentially memory corruption depending on the compiler/OS.
So, I'll fix that up to branches/1.4
Change History
Note: See
TracTickets for help on using
tickets.
