commit | 92e2c4baafa0401cb8d7dd2bbd70acfaeaf2aabf | [log] [tgz] |
---|---|---|
author | Sebastian Rasmussen <sebras@gmail.com> | Mon May 29 12:53:30 2017 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Mon May 29 10:53:30 2017 -0700 |
tree | e40aa8c23ad7cb9bc635f549d4b26178befc669a | |
parent | 06cfe3f7369684fc05fa16da7f6778350f8bcba5 [diff] |
Avoid using strdup inside library. (#488) If an application provides a malloc replacement through hb_malloc_impl() it is important that it is used to allocate everything, but the use of strdup() circumvents this and causes system malloc() to be called instead. This pairs badly with the custom hb_free_impl() being called later.