Method for dynamically allocating memory to one (or more) data structure(s) (ID _Aj) identified by an identification number and stored as digital information packets in a storage area of an onboard system, wherein said storage area being subdivided into elementary memory blocks (BLI), and this method for dynamically allocating memory being implemented from at least one elementary memory block erasure instruction (E) and one elementary memory block allocation instruction (A), through which said elementary memory block is associated with a reference to said identification number, this method comprises the following steps:
- a. to allocate an elementary memory block
- b. assign to said reference to said identification number the value of said identification number and,
- c. to erase an elementary memory block
- d. assign to said reference to said identification number an arbitrary value, different from any identification number.