1
0
Fork 0

Adding upstream version 1.65.7.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-19 21:29:57 +02:00
parent 5189956325
commit 32b8eb3fd7
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
4153 changed files with 2487292 additions and 0 deletions

16
testdata/memgrind/doublefree.c vendored Normal file
View file

@ -0,0 +1,16 @@
// This program frees allocated memory twice.
//
// Compile to Go: `$ ccgo -o main.go doublefree.c`.
//
// To run the resulting Go code: `$ go run main.go`.
//
// To run the resulting Go code with memgrind: `$ go run -tags=libc.memgrind main.go`.
#include <stdlib.h>
int main() {
void *p = malloc(42);
free(p);
free(p);
}