add: g_free (devname);
context: get_cd_scsi_id (const char *dev, int *bus, int *id, int *lun){	int fd;	char *devfile;	struct {		long mux4;		long hostUniqueId;	} m_idlun;		devfile = g_strdup_printf ("/dev/%s", dev);	fd = open(devfile, O_RDONLY | O_NONBLOCK);	g_free (devfile);		if (fd < 0) {		g_warning ("Failed to open cd device %s\n", dev);		return 0;	}    	if (ioctl (fd, SCSI_IOCTL_GET_BUS_NUMBER, bus) < 0) {		g_warning ("Failed to get scsi bus nr\n");		close (fd);		return 0;	}	if (ioctl (fd, SCSI_IOCTL_GET_IDLUN, &m_idlun) < 0) {		g_warning ("Failed to get scsi id and lun\n");		close(fd);		return 0;	}	*id = m_idlun.mux4 & 0xFF;	*lun = (m_idlun.mux4 >> 8)  & 0xFF;		close(fd);	return 1;}