summaryrefslogtreecommitdiffstats
path: root/linker
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-07-08 15:26:46 -0700
committerDmitriy Ivanov <dimitry@google.com>2015-07-09 17:03:37 -0700
commita5bb841df799e10e7d0ae3202b097da8a1c23507 (patch)
tree55b1a39f727753cba08a15241cb2ca83e406af8b /linker
parent65dd858239c4e32a5a1afbc14ac30dbcdd2a50a3 (diff)
downloadbionic-a5bb841df799e10e7d0ae3202b097da8a1c23507.zip
bionic-a5bb841df799e10e7d0ae3202b097da8a1c23507.tar.gz
bionic-a5bb841df799e10e7d0ae3202b097da8a1c23507.tar.bz2
Fix memory-leak on soinfo_free()
Bug: http://b/22290728 Change-Id: I00747056db2cd3ff8b33936278464daed7236536 (cherry picked from commit 609f11b31ecedc4e9f2a1f6017b60b1f51b15c22)
Diffstat (limited to 'linker')
-rw-r--r--linker/linker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 60f8489..e84036a 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -277,6 +277,7 @@ static void soinfo_free(soinfo* si) {
sonext = prev;
}
+ si->~soinfo();
g_soinfo_allocator.free(si);
}