Opened 12 years ago

Closed 12 years ago

#2301 closed defect (fixed)

thinplatespline : memory allocated with 'calloc' freed with 'delete'

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 1.4.5
Component: default Version: 1.4.0
Severity: normal Keywords: tps
Cc: warmerdam


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 (1)

comment:1 Changed 12 years ago by Even Rouault

Resolution: fixed
Status: newclosed

Fixed in trunk in r14122, in branches/1.5 in r14123 and in branches/1.4 in r14124

Note: See TracTickets for help on using tickets.