Commit cdd45ca1 authored by Alex Deymo's avatar Alex Deymo
Browse files

munmap() buffers after running bsdiff in main.

We were technically leaking mmap'ed memory in the main program. This
was not really a problem in normal execution of the binary because the
process would finish right after it, but releasing the mmap() helps
find actual leaks when instrumenting the code with asan tools.

Bug: None
Test: ran bsdiff over a sample file.
Change-Id: I5fac808ba6d0ba9b2331e40a764cac1a3620062f
parent 46e8a3d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment