[RemoteMirrors] Fix the pointer-returning readBytes wrapper to actually work.

This commit is contained in:
Mike Ash
2018-02-27 16:53:01 -05:00
parent 13c962b553
commit 6324c3dbe9

View File

@@ -73,7 +73,7 @@ public:
free(buffer); free(buffer);
return std::make_tuple(nullptr, []{}); return std::make_tuple(nullptr, []{});
} }
return std::make_tuple(nullptr, [=]{ free(buffer); }); return std::make_tuple(buffer, [=]{ free(buffer); });
} }
/// Attempts to read 'size' bytes from the given address in the /// Attempts to read 'size' bytes from the given address in the