Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  HP UX, CPU statistics: Fix an invalid pointer dereference
diff --git a/agent/mibgroup/hardware/cpu/cpu_pstat.c b/agent/mibgroup/hardware/cpu/cpu_pstat.c
index 8da916f..d550450 100644
--- a/agent/mibgroup/hardware/cpu/cpu_pstat.c
+++ b/agent/mibgroup/hardware/cpu/cpu_pstat.c
@@ -74,8 +74,8 @@
                 }
             }
         }
+        free(psp);
     }
-    free(psp);
     cpu_num = psd.psd_proc_cnt;
 }