oops..mem leak!
authorBrenden Matthews <brenden1@rty.ca>
Sat, 27 Aug 2005 06:02:45 +0000 (06:02 +0000)
committerBrenden Matthews <brenden1@rty.ca>
Sat, 27 Aug 2005 06:02:45 +0000 (06:02 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@202 7f574dfc-610e-0410-a909-a81674777703

src/conky.c
src/linux.c

index 9ed7c86..5e81ba6 100644 (file)
@@ -2820,6 +2820,7 @@ static inline int get_string_width_special(char *s)
        if (strlen(final) > 1) {
                width += calc_text_width(final, strlen(final));
        }
+       free(final);
        return width;
 #else
        return strlen(s);
@@ -3300,7 +3301,7 @@ static void draw_line(char *s)
                                break;
 
                        case GRAPH:
-                               {
+                       {
                                        if (cur_x > maximum_width - text_start_x && maximum_width > 0) {
                                                break;
                                        }
index 125a0e7..10198c4 100644 (file)
@@ -1125,6 +1125,7 @@ void update_diskio()
         * cd-roms and floppies, and summ them up
         */
        current = 0;
+       strcmp(buf, "fasdf");
        while (!feof(fp)) {
                fgets(buf, 512, fp);
                col_count = sscanf(buf, "%u %u %*s %*u %*u %u %*u %*u %*u %u",