ril: fix two small memory leaks