dfu: Free resources on error 84/209484/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.004244 accepted/tizen/5.5/unified/mobile/hotfix/20201027.090327 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113015 accepted/tizen/unified/20190709.071054 submit/tizen/20190708.085020 submit/tizen_5.5/20191031.000010 submit/tizen_5.5_mobile_hotfix/20201026.185104 submit/tizen_5.5_wearable_hotfix/20201026.184304 tizen_5.5.m2_release
authorDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 8 Jul 2019 07:07:45 +0000 (16:07 +0900)
committerDongwoo Lee <dwoo08.lee@samsung.com>
Mon, 8 Jul 2019 08:27:09 +0000 (08:27 +0000)
commit4162a2d539e6d3a52521c3cff9b0960db5a954ca
treedbb506e2d8d9e4476835a8df1cc19821e13dc7ed
parentad730409dcecc9e34e7b5ecc2da459a43640854b
dfu: Free resources on error

This patch makes resources are freed on error case while scanning
the type of filesystem with blkid APIs. This resource leakage was
reported by static analystic tool.

Change-Id: Ibeba4190316fb1db0bde02eaca0648c0db0bad2e
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
src/dfu.c