Ticket #2301 (closed defect: fixed)

Opened 2 months ago

Last modified 2 months ago

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

Reported by: rouault Assigned to: 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

03/30/08 06:34:43 changed 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