It could be a genuine leak, but it sounds an awful lot like Firefox using 28 GiB of virtual memory.
Firefox often appears to use large amounts of memory in top / htop, but I believe that's just reported address space allocations. The RES column gives a more accurate depiction of memory usage.