]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/PiSmmCore/SmramProfileRecord.c
MdeModulePkg MemoryProfile: Add ASSERTs to make sure pointers are not NULL
[mirror_edk2.git] / MdeModulePkg / Core / PiSmmCore / SmramProfileRecord.c
index 281e382d5c8102af3c0a512fc8d732c828a89717..ac832ce38c740c096459f6914f9a35a760088d24 100644 (file)
@@ -1403,6 +1403,9 @@ SmmCoreUpdateProfileFree (
       }\r
     }\r
 \r
+    ASSERT (DriverInfoData != NULL);\r
+    ASSERT (AllocInfoData != NULL);\r
+\r
     Found = TRUE;\r
 \r
     Context = &ContextData->Context;\r