ApolloTeam-dev/ApolloOS

Multiview memory leak from CLI

Opened this issue · 2 comments

If from CLI, if you run multiview and don't select a file, and quit, there is a memory leak of 128 bytes per execution

To Reproduce
Steps to reproduce the behavior:

  1. Go to CLI
  2. Take note of available member displayed in WorkBench toolbar
  3. Type Multiview
  4. In resultant file requestor, hit cancel
  5. Wait a couple secs. Take note of available member displayed in WorkBench toolbar - is 128 bytes less for every execution

Expected behavior
Expect memory to restore to exactly what we started with

Configuration
Apollo Device
V4+ Stand Alone Apollo-OS 9.4

Also can see clearly from CLI avail command, that Fast ram total drops each time. (ignore first time as something else seems to eat some memory - maybe a new lib or something gets loaded.
Strangely never matches with Workbench 'Other' memory, but think that is another issue

Screenshot 2024-09-21 at 4 56 41 PM

If type nearly any command in CLI the memory drops
Maybe the command history is responsible, which in that case is not a bug when run from CLI.

But it run from WB using menu ->Execute command Multiview , exit and repeat multiple times. 52k is lost everytime (which is worse).