From edfba0bb0395bb825edc4766c990b246a7de92eb Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 24 Oct 2011 10:25:41 +0000 Subject: [PATCH] Actually put a note about the Haiku specific there, so that this isn't overlooked accidentally on future updates. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42900 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/compat/freebsd_network/if.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/compat/freebsd_network/if.c b/src/libs/compat/freebsd_network/if.c index 257e44b8b8..fc418c6619 100644 --- a/src/libs/compat/freebsd_network/if.c +++ b/src/libs/compat/freebsd_network/if.c @@ -406,6 +406,12 @@ if_freemulti(struct ifmultiaddr *ifma) if (ifma->ifma_lladdr != NULL) free(ifma->ifma_lladdr); + + // Haiku note: We use a field in the ifmultiaddr struct (ifma_addr_storage) + // to store the address and let ifma_addr point to that. We therefore do not + // free it here, as it will be freed as part of freeing the if_multiaddr. + //free(ifma->ifma_addr); + free(ifma); }