commit | 9dabc9ef320ce3651dda4db4881cdb49686c4f52 | [log] [tgz] |
---|---|---|
author | Christopher Ferris <cferris@google.com> | Mon Oct 02 17:02:05 2023 -0700 |
committer | Christopher Ferris <cferris@google.com> | Mon Oct 02 17:02:51 2023 -0700 |
tree | 87b8e50b0dc1bfdd00c34a3d580b66ce72c6f182 | |
parent | e877885533696352a67707b4ed61643351160a6d [diff] |
Change source to be a unique_ptr. The current code keeps a pointer to a local variable which doesn't work too well. Change this to a unique_ptr and allocate the source object that will be used instead. Test: All unit tests pass. Test: fastboot -w flashall on a mokey which crashed without this change. Change-Id: Ief5437374181e514928c45dd540b42898901a137