Opened 16 years ago

Closed 16 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

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

comment:1 by Even Rouault, 16 years ago

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.