solution suggested by André Wöbbeking. Thanks for helping me solve the MMModemInterface invalid free problem. CCBUG: 258852 (cherry picked from commit a0fc87f7)