DMC: Fix DDCMP modulo 256 compare operations.  Fix to avoid potential memory leaks when device is programmatically reset.