Correct memory leak in the RTE cleanup
[ric-plt/lib/rmr.git] / src / rmr / common / src / tools_static.c
index cc95fc1..bbe49ee 100644 (file)
@@ -187,7 +187,7 @@ static char* uta_h2ip( char const* hname ) {
                *(tok++) = 0;
        }
 
-       hent = gethostbyname( dname );
+       hent = gethostbyname( dname );                  // valgrind will complain that this leaks, but we cannot free it!
        if( hent == NULL || hent->h_addr_list == NULL ) {
                //rmr_vlog( RMR_VL_WARN, "h2ip: dns lookup failed for: %s\n", dname );
                free( dname );