Ticket #2301 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

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

Changed 4 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

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.