Make sure the mutex unlocked before calling g_mutex_clear() 73/199673/1
authorSangyoon Jang <jeremy.jang@samsung.com>
Thu, 14 Feb 2019 03:04:09 +0000 (12:04 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Thu, 14 Feb 2019 03:04:09 +0000 (12:04 +0900)
commit51d4cea6586d574fced41e5b3274d44f0a0ebb44
treeb0fa0267f155f28795967f2494a47ae08c1dd11c
parentdae244d6856179f6ee8a6c3e9e06c98cbb8a34a1
Make sure the mutex unlocked before calling g_mutex_clear()

Calling g_mutex_clear() on a locked mutex leads to undefined behaviour.

Change-Id: I90c1de3afe0ab9f0119980c1c8f603cffc26963a
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
src/package_manager.c