Fixed a small memory leak in ACPI.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12431 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Nathan Whitehorn 2005-04-18 00:02:25 +00:00
parent d3b4bf40b3
commit 6843026324

View File

@ -221,6 +221,7 @@ status_t get_device_hid (const char *path, char *hid) {
}
strncpy(hid,info->HardwareId.Value,ACPI_DEVICE_ID_LENGTH);
free(info_buffer.Pointer);
hid[8] = '\0';
return B_OK;
}