diff options
author | Alex Deymo <deymo@chromium.org> | 2015-06-12 12:18:56 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-12 23:51:58 +0000 |
commit | a50870549b0fc16b659250449fffbd3eacc57d8b (patch) | |
tree | 7086bc2fa50c97450560c6db9ef21d1d64ad0494 /update_manager/generic_variables_unittest.cc | |
parent | bfeeb2e85b7881ec16badb0e104c600639102ce2 (diff) |
update_engine: Fix memory leak on new ext2_filesystem code.
ext2fs_get_pathname() allocates new memory to store the pathname and we
are supposed to free it. This patch adds the missing call to
ext2fs_free_mem().
BUG=None
TEST=`FEATURES=test USE="clang asan" VERBOSE=1 GTEST_FILTER="Ext2*" emerge-link update_engine` works now and didn't work before
Change-Id: I5244e7f9721875590c3b2455d469866d28c70c09
Reviewed-on: https://chromium-review.googlesource.com/277277
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Don Garrett <dgarrett@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
Diffstat (limited to 'update_manager/generic_variables_unittest.cc')
0 files changed, 0 insertions, 0 deletions