pupnp / pupnp

libupnp: Build UPnP-compliant control points, devices, and bridges on several operating systems.
https://pupnp.github.io/pupnp
BSD 3-Clause "New" or "Revised" License
349 stars 114 forks source link

Memory leak in function TvDeviceSetContrast #430

Closed Hripsime-H closed 7 months ago

Hripsime-H commented 8 months ago

hi, Memory leak in function TvDeviceSetContrast The memory leak is reported by a static analyzer tool developed at CAST (https://www.linkedin.com/company/cast-center).

Specifically, dynamic memory is allocated here and if the function returns from here , allocated memory remains not freed.

Hripsime-H commented 8 months ago

There are similar cases in TvDeviceSetVolume TvDeviceSetBrightness TvDeviceSetColor TvDeviceSetTint