Fix free-after-use for MediaHTTP am: dd81e1592f
am: 1e6019cb2c

Change-Id: I446df7b66109b2af3f03d252bb465ac9d366add1