hal: fix a bug introduced as part of changes done for fixing memroy leak

The return value of platform_get_parameters() is getting freed up
wrongly which is fixed now. This bug was introduced as part of the
gerrit-id 611791.

Change-Id: I61e4f5abc732fbe84702452e27cde7c1c36f77e6
diff --git a/hal/msm8974/platform.c b/hal/msm8974/platform.c
index fb14330..b1864cc 100644
--- a/hal/msm8974/platform.c
+++ b/hal/msm8974/platform.c
@@ -1699,7 +1699,7 @@
 
     kv_pairs = str_parms_to_str(reply);
     ALOGV_IF(kv_pairs != NULL, "%s: exit: returns - %s", __func__, kv_pairs);
-    free(reply);
+    free(kv_pairs);
 }
 
 /* Delay in Us */