cleanup: remove memory leak 20/234520/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200528.043043 accepted/tizen/5.5/unified/wearable/hotfix/20201027.113431 submit/tizen_5.5/20200527.113407 submit/tizen_5.5_wearable_hotfix/20201026.184304
authorYunmi Ha <yunmi.ha@samsung.com>
Wed, 27 May 2020 04:32:02 +0000 (13:32 +0900)
committerYunmi Ha <yunmi.ha@samsung.com>
Wed, 27 May 2020 04:30:04 +0000 (04:30 +0000)
Change-Id: I8d2a705d629eb7d8faa9b36798edfda7b1591445
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
src/storage/cleanup.c

index 2d55593e9be30d282d91ad7bcf2592ad0e68d654..077d40926c5aa8495473c94349384b6051b2485d 100644 (file)
@@ -141,7 +141,9 @@ static int remove_dir(const char *path)
 
                bEmpty = false;
                _D("path (%s) is not empty.", path);
+               break;
        }
+       closedir(dir);
 
        if (bEmpty)
                REMOVE(path);