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

Commit 0c31b981 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Fix a memory leak in the osi allocation tracker

am: d1197ebb

Change-Id: Ia2163e96693c890005c88ce79726710f378116c7
parents 4ae37d7c d1197ebb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -165,6 +165,7 @@ void* allocation_tracker_notify_free(UNUSED_ATTR uint8_t allocator_id,
  // Double-free of memory is detected with "assert(allocation)" above
  // as the allocation entry will not be present.
  allocations.erase(ptr);
  free(allocation);

  return ((char*)ptr) - canary_size;
}