libdlog: remove library destructor 84/197584/8
authorMaciej Slodczyk <m.slodczyk2@partner.samsung.com>
Mon, 14 Jan 2019 08:55:09 +0000 (09:55 +0100)
committerMaciej Slodczyk <m.slodczyk2@partner.samsung.com>
Tue, 22 Jan 2019 15:44:35 +0000 (16:44 +0100)
commitdc5321263c06faf124ac8f00aca9884f5db2554a
treef9a9ecebb34749dd42b8cae1f39103795bd4d1cc
parent7e87520ce70b6f68183f9a308c73cc9b5ad02cf3
libdlog: remove library destructor

A destructor assumes that it has an exclusive thread
access (no other library function can run in paralell).
This condition is not always met, which can lead to a
race condition and use after free situation. Since all
other, backend specific resources are not freed anyway,
we can get rid of the destructor to make things more
reliable.
The function itself is left because it is still necessary
in tests.

Change-Id: I3bc2a7b660c6c805182592a70a8a954beba16772
Signed-off-by: Maciej Slodczyk <m.slodczyk2@partner.samsung.com>
Makefile.am
src/libdlog/log.c
src/tests/libdlog_base.c