[PATCH v2 1/1] ieframe: Fix memory leak and possible reference leak