Merge "platform: msm_shared: Fix the double free of buffer, which used to store partition entries"
diff --git a/platform/msm_shared/partition_parser.c b/platform/msm_shared/partition_parser.c
index d8df054..bd3cf39 100755
--- a/platform/msm_shared/partition_parser.c
+++ b/platform/msm_shared/partition_parser.c
@@ -1330,6 +1330,8 @@
 	}
 fail:
 	free(new_buffer);
+	new_buffer = NULL;
+
 	return ret;
 }