Identify memory leaks that occur on error conditions
[debian/gnuradio] / gnuradio-core / src / lib / io / gr_udp_sink.cc
index 2ee16b79f21020d45583fac12b5b489f2e973c60..3084a848be7a78c537af79e069703ca404533052 100755 (executable)
@@ -221,6 +221,8 @@ void gr_udp_sink::connect( const char *host, unsigned short port )
     hints.ai_protocol = IPPROTO_UDP;
     char port_str[12];
     sprintf( port_str, "%d", port );
+
+    // FIXME leaks if report_error throws below
     int ret = getaddrinfo( host, port_str, &hints, &ip_dst );
     if( ret != 0 )
       report_error("gr_udp_source/getaddrinfo",