提交 a3ab9222 编写于 作者: N npes87184 提交者: Romain Vimont

Destroy mutex if strdup failed

Signed-off-by: Nnpes87184 <npes87184@gmail.com>
上级 ec66b3be
......@@ -69,6 +69,7 @@ SDL_bool installer_init(struct installer *installer, const char *serial) {
installer->serial = SDL_strdup(serial);
if (!installer->serial) {
LOGW("Cannot strdup serial");
SDL_DestroyMutex(installer->mutex);
return SDL_FALSE;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册