mate-desktop / mate-notification-daemon

Daemon to display passive pop-up notifications
https://mate-desktop.org
GNU General Public License v2.0
30 stars 26 forks source link

Memory leak of setting value in notification_properties_position_notify #147

Closed jranieri-grammatech closed 3 years ago

jranieri-grammatech commented 5 years ago

The value returned by g_settings_get_string here is leaked every time it is is called: https://github.com/mate-desktop/mate-notification-daemon/blob/e143ad579dc1d22101260843ee51d52ba3ce8626/src/capplet/mate-notification-properties.c#L82

This problem was found using the static analysis tool GrammaTech CodeSonar.

raveit65 commented 5 years ago

PR is welcome.