diff --git a/app/src/installer.c b/app/src/installer.c index fcb41fc9..b4789297 100644 --- a/app/src/installer.c +++ b/app/src/installer.c @@ -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 {