From fd498c68a141bb5340e79a1ce7da9b43b8ca7830 Mon Sep 17 00:00:00 2001 From: henyxia Date: Mon, 13 Apr 2015 15:09:44 +0200 Subject: [PATCH] Some more features, but more leak too --- log.txt | 20 -------------------- printx.c | 3 +-- ui.c | 9 +++++---- 3 files changed, 6 insertions(+), 26 deletions(-) delete mode 100644 log.txt diff --git a/log.txt b/log.txt deleted file mode 100644 index 366f933..0000000 --- a/log.txt +++ /dev/null @@ -1,20 +0,0 @@ -==7664== Memcheck, a memory error detector -==7664== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. -==7664== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info -==7664== Command: ./tweekd -==7664== -==7664== -==7664== HEAP SUMMARY: -==7664== in use at exit: 408 bytes in 3 blocks -==7664== total heap usage: 16 allocs, 13 frees, 2,428 bytes allocated -==7664== -==7664== LEAK SUMMARY: -==7664== definitely lost: 0 bytes in 0 blocks -==7664== indirectly lost: 0 bytes in 0 blocks -==7664== possibly lost: 408 bytes in 3 blocks -==7664== still reachable: 0 bytes in 0 blocks -==7664== suppressed: 0 bytes in 0 blocks -==7664== Rerun with --leak-check=full to see details of leaked memory -==7664== -==7664== For counts of detected and suppressed errors, rerun with: -v -==7664== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) diff --git a/printx.c b/printx.c index 44d07c1..9c4b029 100644 --- a/printx.c +++ b/printx.c @@ -18,12 +18,11 @@ float start; void removeCharFromString(char c, char *str) { -/* int len = strlen(str)+1; + int len = strlen(str)+1; for(int i=0; i