Remove malloc from haystack initialization *DO NOT MERGE*

Merge from widevine repo of http://go/wvgerrit/23020

Previously, a static variable was initialized with a malloc.  This can
cause a memory leak if the library is initialized multiple times.  A
dynamically loaded library can be initialized each time it is loaded.

This CL replaces the malloc with a predefined array.

arm/libwvlevel3.a  Level3 Library 4445 Jan 10 2017 21:43:50
x86/libwvlevel3.a  Level3 Library 4464 Jan 10 2017 22:02:50
mips/libwvlevel3.a  Level3 Library 4465 Jan 10 2017 21:53:14

b/34195601

Change-Id: Ieba7fe6df52cd3e10ace643f32ef3fd984ae353e
This commit is contained in:
Fred Gylys-Colwell
2017-01-10 22:31:20 -08:00
parent eb9ea09db6
commit 66f07b3985
3 changed files with 0 additions and 0 deletions