Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix memory leak when using syslog

  • Loading branch information...
commit a12643fe07c60018f920e89c1365664d344ad781 1 parent dbb39f7
Cliff Atwood authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/log.c
4 src/log.c
View
@@ -144,8 +144,8 @@ void ape_log(ape_log_lvl_t lvl, const char *file, unsigned long int line, acetab
}
write(g_ape->logs.fd, buff, len);
write(g_ape->logs.fd, "\n", 1);
-
- free(buff);
}
+
+ free(buff);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.