Fix memory bug in get_deviceSerials().

--BRJ and CAR