sensord: fix the memory leak when get_data is failed