In the Linux kernel, the following vulnerability has been resolved:
iio: adc: at91adc: fix possible memory leak in at91adcallocatetrigger()
If iiotriggerregister() returns error, it should call iiotriggerfree() to give up the reference that hold in iiotriggeralloc(), so that it can call iiotrigrelease() to free memory when the refcount hit to 0.