1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-05 21:07:52 +00:00

oops..mem leak!

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky@202 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2005-08-27 06:02:45 +00:00
parent 8b1611f7ac
commit e1a20e83d5
2 changed files with 3 additions and 1 deletions

View File

@ -2820,6 +2820,7 @@ static inline int get_string_width_special(char *s)
if (strlen(final) > 1) { if (strlen(final) > 1) {
width += calc_text_width(final, strlen(final)); width += calc_text_width(final, strlen(final));
} }
free(final);
return width; return width;
#else #else
return strlen(s); return strlen(s);
@ -3300,7 +3301,7 @@ static void draw_line(char *s)
break; break;
case GRAPH: case GRAPH:
{ {
if (cur_x > maximum_width - text_start_x && maximum_width > 0) { if (cur_x > maximum_width - text_start_x && maximum_width > 0) {
break; break;
} }

View File

@ -1125,6 +1125,7 @@ void update_diskio()
* cd-roms and floppies, and summ them up * cd-roms and floppies, and summ them up
*/ */
current = 0; current = 0;
strcmp(buf, "fasdf");
while (!feof(fp)) { while (!feof(fp)) {
fgets(buf, 512, fp); fgets(buf, 512, fp);
col_count = sscanf(buf, "%u %u %*s %*u %*u %u %*u %*u %*u %u", col_count = sscanf(buf, "%u %u %*s %*u %*u %u %*u %*u %*u %u",