coding style: add arguments to function prototypes
[fw/openocd] / src / target / arm_dpm.c
index 495d63ec2829341fd44ed1955f30bf199b147e44..72215f90b86ad0810b3d868569ee2a924489b1c2 100644 (file)
@@ -1100,6 +1100,7 @@ int arm_dpm_setup(struct arm_dpm *dpm)
        dpm->dwp = calloc(dpm->nwp, sizeof(*dpm->dwp));
 
        if (!dpm->dbp || !dpm->dwp) {
+               arm_free_reg_cache(arm);
                free(dpm->dbp);
                free(dpm->dwp);
                return ERROR_FAIL;