https://bugs.kde.org/show_bug.cgi?id=385894

            Bug ID: 385894
           Summary: plasma-desktop-5.11.1/kcms/hardware/joystick/joydevice
                    .cpp:188]: (error) Memory leak
           Product: plasmashell
           Version: 5.11.1
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: k...@davidedmundson.co.uk
          Reporter: dcb...@hotmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

Source code is

  if ( ::ioctl(fd, JSIOCGCORR, oldCorr) == -1 )
  {
    ::close(fd);
    delete [] oldCorr;
    return JoyDevice::ERR_GET_CORR;
  }

  if (bt < 0) {
      return JoyDevice::ERR_GET_BUTTONS;
  }

Suggest add close and delete on second if statement.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to