module-zeroconf: only free impl when not NULL

This commit is contained in:
Wim Taymans 2021-08-05 15:49:38 +02:00
parent 4be14c24f5
commit 9229467f20

View File

@ -512,6 +512,7 @@ int pipewire__module_init(struct pw_impl_module *module, const char *args)
error_errno:
res = -errno;
impl_free(impl);
if (impl)
impl_free(impl);
return res;
}