[hackers] [sbase] logger: Don't bother freeing buf || sin

From: <git_AT_suckless.org>
Date: Tue, 16 Dec 2014 21:14:45 +0100

commit 7e8fcc1f037f2d9339cb5f4e0da6eeefde152525
Author: sin <sin_AT_2f30.org>
Date: Tue Dec 16 20:14:08 2014 +0000

    logger: Don't bother freeing buf
    
    There are many more instances of this pattern.

diff --git a/logger.c b/logger.c
index 3496db7..d8d0fc7 100644
--- a/logger.c
+++ b/logger.c
_AT_@ -86,7 +86,6 @@ main(int argc, char *argv[])
                 }
                 syslog(priority, "%s", buf);
         }
- free(buf);
         closelog();
         return 0;
 }
Received on Tue Dec 16 2014 - 21:14:45 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 16 2014 - 21:24:09 CET