fix free() in device.c