[fix] memory leak because of context not free