Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca5cc4e8 authored by Grant Hernandez's avatar Grant Hernandez
Browse files

MTP: free leaked DIR after copyRecursive

Test: mmm -j
Test: atest mtp_ffs_handle_test
Change-Id: I572c8c0e982e89ed6f21f181e503b11e5439be59
parent 1b96fe4a
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -150,6 +150,7 @@ int copyRecursive(const char *fromPath, const char *toPath) {
            ret += copyFile(oldFile.c_str(), newFile.c_str());
            ret += copyFile(oldFile.c_str(), newFile.c_str());
        }
        }
    }
    }
    closedir(dir);
    return ret;
    return ret;
}
}