Changeset 13053


Ignore:
Timestamp:
01/09/12 22:21:34 (12 years ago)
Author:
obi
Message:

fix memleak

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/global.h

    r13051 r13053  
    6464        free(cpu), cpu = NULL;
    6565        free(cmd), cmd = NULL;
    66         checkserial(getcpuid());
     66        char* tmpstr = NULL;
     67        tmpstr = getcpuid();
     68        checkserial(tmpstr);
     69        free(tmpstr), tmpstr = NULL;
    6770}
    6871       
  • titan/titan/titan.c

    r13046 r13053  
    689689        }
    690690
    691         checkserial(getcpuid());
     691        char* tmpstr2 = NULL;
     692        tmpstr2 = getcpuid();
     693        checkserial(tmpstr2);
     694        free(tmpstr2), tmpstr2 = NULL;
     695
    692696        screeninfobar();
    693697
Note: See TracChangeset for help on using the changeset viewer.