CAMEL-6856: netty consumer using UDP should release the datagram channel factory
diff --git a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
index 3cbb0b3..623870e 100644
--- a/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
+++ b/components/camel-netty/src/main/java/org/apache/camel/component/netty/NettyConsumer.java
@@ -98,6 +98,9 @@
         if (channelFactory != null) {
             channelFactory.releaseExternalResources();
         }
+        if (datagramChannelFactory != null) {
+            datagramChannelFactory.releaseExternalResources();
+        }
 
         // and then shutdown the thread pools
         if (bossExecutor != null) {