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:
parent
d3b4bf40b3
commit
6843026324
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user