Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion dmidecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -4811,8 +4811,10 @@ static void dmi_table(off_t base, u32 len, u16 num, u32 ver, const char *devmem,
* This CFRelease throws 'Segmentation fault: 11' since macOS 10.12, if
* the compiled binary is not signed with an Apple developer profile.
*/
#ifdef SIGNED_BINARY // So don't do that unless you signed it
if (NULL != properties)
CFRelease(properties);
#endif

IOObjectRelease(service);
}
Expand Down Expand Up @@ -5147,7 +5149,7 @@ int main(int argc, char * const argv[])
goto exit_free;
}

CFDataGetBytes(dataRef, CFRangeMake(0, 0x20), (UInt8*)buf);
CFDataGetBytes(dataRef, CFRangeMake(0, CFDataGetLength(dataRef)), (UInt8*)buf);

if (NULL != dataRef)
CFRelease(dataRef);
Expand Down