Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always free name. Bug Summary File: nasl_host.c Warning: line 566, column 10 Potential memory leak For testing: run the following script `sudo openvas-nasl -X -d -i /home/jnicola/install/var/lib/openvas/plugins/ same_host.nasl` script: ``` nasl display (same_host("localhost", "localhost1", cmp_hostnames: 0)); display (same_host("localhost", "localhost1", cmp_hostnames: 1)); display (same_host("127.0.0.1", "localhost1", cmp_hostnames: 0)); display (same_host("127.0.0.1", "localhost1", cmp_hostnames: 1)); display (same_host("127.0.0.2", "localhost1", cmp_hostnames: 0)); display (same_host("127.0.0.2", "localhost1", cmp_hostnames: 1)); display (same_host("localhost", "localhost2", cmp_hostnames: 0)); display (same_host("localhost", "localhost2", cmp_hostnames: 1)); display (same_host("127.0.0.1", "127.0.0.2", cmp_hostnames: 0)); display (same_host("127.0.0.1", "127.0.0.2", cmp_hostnames: 1)); ```
- Loading branch information