We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d18aec commit 8cc1a8dCopy full SHA for 8cc1a8d
compiler/Dockerfile
@@ -33,6 +33,7 @@ ADD scripts /app/scripts
33
ADD libs /app/libs
34
ADD runtime /app/runtime
35
ADD carpntr /app/carpntr
36
+ADD test_libs /app/test_libs
37
ADD bin/test.txt /app/test.txt
38
RUN mkdir "/app/bin"
39
compiler/src/utilities/cpp_util.cpp
@@ -58,7 +58,9 @@ std::string yaksha::get_my_exe_path() {
58
if (path == nullptr) { return ""; }
59
wai_getModulePath(path, length, nullptr);
60
path[length] = '\0';
61
- return std::string{path,
62
- static_cast<std::basic_string<char>::size_type>(length)};
+ auto exe_path = std::string{
+ path, static_cast<std::basic_string<char>::size_type>(length)};
63
+ free(path);
64
+ return exe_path;
65
}
66
#endif
0 commit comments