Tested with GPAC 1.0.1 (Centos7) and GPAC git (Ubuntu 20.04)

Steps to reproduce (filesize ~4GB):
````
cd /tmp
wget http://doppelbauer.name/coredump.mp4
MP4Box -inter 500 -tmp /tmp/test -add /tmp/coredump.mp4 -new /tmp/ignore.mp4
````

Console:
```
free(): double free detected in tcache 2
aborted (core dumped)
```
Coredump: free(): double free detected in tcache 2
This is a GitHub Issue
repo:gpac
owner:gpac
Title : Coredump: free(): double free detected in tcache 2
Issue date:

--- start body ---
Tested with GPAC 1.0.1 (Centos7) and GPAC git (Ubuntu 20.04)

Steps to reproduce (filesize ~4GB):
````
cd /tmp
wget http://doppelbauer.name/coredump.mp4
MP4Box -inter 500 -tmp /tmp/test -add /tmp/coredump.mp4 -new /tmp/ignore.mp4
````

Console:
```
free(): double free detected in tcache 2
aborted (core dumped)
```
--- end body ---

A double free vulnerability in GPAC v1.0.1 and the latest git version allows attackers to cause a Denial of Service (DoS) by triggering a core dump when processing a specially crafted MP4 file. This can lead to potential exploitation if the application is manipulated to free the same memory location twice, which can corrupt the memory management data structures.