board: fixed allocated memory released via iniparser_getseckeys() 72/154572/1 accepted/tizen/unified/20171010.163344 submit/tizen/20171010.131453
authorSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 12:52:47 +0000 (21:52 +0900)
committerSegwon <segwon.han@samsung.com>
Tue, 10 Oct 2017 12:52:47 +0000 (21:52 +0900)
Change-Id: I49542c1e79e83aa8ad278eca23d89c78a44cd55f
Signed-off-by: Segwon <segwon.han@samsung.com>
src/daemon/peripheral_bus_board.c

index 9750fe000d84a2222d9027f0a51fa38e1f838b47..3846ac3785e605a2d0a269b4c7bb0a5dba3c2a43 100644 (file)
@@ -212,6 +212,9 @@ static pb_board_s *peripheral_bus_board_get_info()
                }
        }
 
+       if (key_list)
+               free(key_list);
+
        iniparser_freedict(dict);
 
        return board;