From c2f7f1b40b20e20fbc111fba59adc49a35f4fda0 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 13 Feb 2009 10:19:26 +0100 Subject: Fix Coverity ID 707 (RESOURCE_LEAK) --- lib/util/util.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit