summaryrefslogtreecommitdiff
path: root/source3/web
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web')
-rw-r--r--source3/web/cgi.c2
-rw-r--r--source3/web/diagnose.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/cgi.c b/source3/web/cgi.c
index 88f4d3f36f..3547379084 100644
--- a/source3/web/cgi.c
+++ b/source3/web/cgi.c
@@ -168,7 +168,7 @@ void cgi_load_variables(FILE *f1)
variables[num_variables].name = strdup(line);
variables[num_variables].value = strdup(p+1);
- free(line);
+ SAFE_FREE(line);
if (!variables[num_variables].name ||
!variables[num_variables].value)
diff --git a/source3/web/diagnose.c b/source3/web/diagnose.c
index f22fe0d9b2..bf2e6da17d 100644
--- a/source3/web/diagnose.c
+++ b/source3/web/diagnose.c
@@ -36,7 +36,7 @@ BOOL nmbd_running(void)
if ((ip_list = name_query(fd, "__SAMBA__", 0,
True, True, loopback_ip,
&count)) != NULL) {
- free(ip_list);
+ SAFE_FREE(ip_list);
close(fd);
return True;
}