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

Commit 4645f981 authored by George Burgess IV's avatar George Burgess IV
Browse files

make: fix memory leak

`info->symlink_target` is a `std::string`. This `strdup` therefore leaks
memory. Just use `std::string::operator=(const char *)` instead.

Bug: 206470603
Test: TreeHugger
Change-Id: I71bcaec583c7d429b4d09522cc5eeb2ced009007
parent 051c9a15
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,7 @@ class RunfilesCreator {
        info->type = FILE_TYPE_REGULAR;
      } else {
        info->type = FILE_TYPE_SYMLINK;
        info->symlink_target = strdup(target);
        info->symlink_target = target;
      }

      FileInfo parent_info;