smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
241 stars 244 forks source link

API Schema objects around recursive API structure VideoStreamingCapability are leaking #3689

Closed iCollin closed 3 years ago

iCollin commented 3 years ago

Bug Report

Some API Schema objects are not being free'd in memory when Core shuts down. Impact is low as these are allocated once with a lifecycle equal to that of the application.

Reproduction Steps
  1. valgrind --leak-check=full ./smartDeviceLinkCore
  2. Wait long enough that API objects are constructed (valgrind slows app a lot)
  3. send SIGINT
Expected Behavior

Valgrind says no memory was leaked

Observed Behavior

Many definitive leaks are detected around API Schema VideoStreamingCapability and its children

OS & Version Information
iCollin commented 3 years ago

Closed via https://github.com/smartdevicelink/sdl_core/pull/3703