Permalink
Browse files

Fix memory leak when using syslog

  • Loading branch information...
1 parent dbb39f7 commit a12643fe07c60018f920e89c1365664d344ad781 @catwood committed Nov 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
}
}

0 comments on commit a12643f

Please sign in to comment.