It's not that simple since some object allocations go unfreed.
For example, Fil-C lifts all escaping locals to the heap, but doesn't free them.