[PATCH] radio-settings: Fix memory leaks in radio_load_settings

2017-06-02 Thread Slava Monich
Errors returned by g_key_file_get_integer have to be deallocated by the caller to avoid leaks like these: ==13330== 104 (24 direct, 80 indirect) bytes in 2 blocks are definitely lost ==13330==at 0x483F3EC: malloc (vg_replace_malloc.c) ==13330==by 0x4B020DF: g_malloc (gmem.c) ==13330==

Re: [PATCH] radio-settings: Fix memory leaks in radio_load_settings

2017-06-02 Thread Denis Kenzior
Hi Slava, On 06/02/2017 10:41 AM, Slava Monich wrote: Errors returned by g_key_file_get_integer have to be deallocated by the caller to avoid leaks like these: ==13330== 104 (24 direct, 80 indirect) bytes in 2 blocks are definitely lost ==13330==at 0x483F3EC: malloc (vg_replace_malloc.c)