summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 1017b1b..47facef 100644
--- a/util.c
+++ b/util.c
@@ -57,6 +57,7 @@ int get(char *host, char *path, char **buf) {
for(l=0; (res = fread(*buf+l, 1, 4096, srv)) > 0; l+=res)
*buf = realloc(*buf, sizeof(char *) * (l+4096));
+ fclose(srv);
return l;
}