mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-06 05:17:57 +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:
parent
8b1611f7ac
commit
e1a20e83d5
@ -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);
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user