about summary refs log tree commit diff
path: root/src/network/if_freenameindex.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/network/if_freenameindex.c')
-rw-r--r--src/network/if_freenameindex.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/network/if_freenameindex.c b/src/network/if_freenameindex.c
new file mode 100644
index 00000000..89bafcc0
--- /dev/null
+++ b/src/network/if_freenameindex.c
@@ -0,0 +1,7 @@
+#include <net/if.h>
+#include <stdlib.h>
+
+void if_freenameindex(struct if_nameindex *idx)
+{
+	free(idx);
+}