VirtualBox

Changeset 10445 in vbox for trunk/src/VBox/Runtime/r3/linux


Ignore:
Timestamp:
Jul 9, 2008 6:21:07 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33111
Message:

forgotten fclose, cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/mp-linux.cpp

    r10442 r10445  
    254254    char *psz = NULL;
    255255    RTCPUID idCpuFound = NIL_RTCPUID;
     256    uint32_t freq = 0;
    256257    while (fgets(sz, sizeof(sz), f))
    257258    {
     
    275276            int rc = RTStrToInt64Ex(psz, &psz, 0, &v);
    276277            if (RT_SUCCESS(rc))
    277                 return v;
     278            {
     279                freq = v;
     280                break;
     281            }
    278282        }
    279283    }
    280     return 0;
     284    fclose(f);
     285    return freq;
    281286}
    282287
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette