AP_GPS: correct asymmetric calloc/free vs new/delete
we calloc this, so delete is not correct
Picked up by CodeQL here: https://github.com/peterbarker/ardupilot/security/code-scanning/1
Nobody but you seems to have permissions to view the link unfortunately so I can’t see any context from the scanner.
LGTM. BTW how dangerous is this mistake by the way?
LGTM. BTW how dangerous is this mistake by the way?
I think it comes down to the compiler. I've read that it can be very bad on Windows.
Nobody but you seems to have permissions to view the link unfortunately so I can’t see any context from the scanner.
Sorry, I was actually wondering about that bit too :-) We have a PR which points people at the "Security" tab in github, so I was just playing around with how it worked.