[rilmodem] Plugged a few memory leaks