* We need to acquire references to the interface_address when copying/cloning
the buffer, and we also need to release it when freeing it. * Adapted patch by Atis: append_cloned_data() now preserves the stored header; this is kind of bad, because it will not notice if the original header is removed, but this could probably just be documented this way. * Also print the reference count of the interface addresses. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37993 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -325,6 +325,8 @@ InterfaceAddress::Dump(size_t index, bool hideInterface)
|
||||
} else
|
||||
strcpy(buffer, "-");
|
||||
kprintf(" destination: %s\n", buffer);
|
||||
|
||||
kprintf(" ref count: %" B_PRId32 "\n", CountReferences());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user