summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-02-13 10:19:26 +0100
committerVolker Lendecke <vl@samba.org>2009-02-13 10:21:03 +0100
commitc2f7f1b40b20e20fbc111fba59adc49a35f4fda0 (patch)
tree0c563fe02447695ef61f071e6f03c5101c3577db /lib/util
parent83c2f028d81a6b481ecd439494dd7c52b1e1b1ff (diff)
downloadsamba-c2f7f1b40b20e20fbc111fba59adc49a35f4fda0.tar.gz
samba-c2f7f1b40b20e20fbc111fba59adc49a35f4fda0.tar.bz2
samba-c2f7f1b40b20e20fbc111fba59adc49a35f4fda0.zip
Fix Coverity ID 707 (RESOURCE_LEAK)
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util/util.c b/lib/util/util.c
index 7548d30b7e..40ac7f79e6 100644
--- a/lib/util/util.c
+++ b/lib/util/util.c
@@ -206,6 +206,7 @@ _PUBLIC_ char *get_myname(void)
/* get my host name */
if (gethostname(hostname, MAXHOSTNAMELEN+1) == -1) {
DEBUG(0,("gethostname failed\n"));
+ free(hostname);
return NULL;
}