Fix bug when permission deny 34/186634/1 accepted/tizen/unified/20180814.063209 submit/tizen/20180813.045019
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 13 Aug 2018 04:44:47 +0000 (13:44 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 13 Aug 2018 04:44:47 +0000 (13:44 +0900)
Free gerror for next use

Change-Id: Id6431e49df036e7e4b507dc2f7b46f42bc4c142d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
src/scanner/media-scanner-scan.c

index 67405c5..a1a6834 100755 (executable)
@@ -140,6 +140,10 @@ static int __msc_dir_scan(void **handle, const char *storage_id, const char*star
                        }
                } else {
                        MS_DBG_ERR("g_dir_open fails [%s]", current_path);
+                       if (error != NULL) {
+                               g_error_free(error);
+                               error = NULL;
+                       }
                }
 
                if (dir) {