ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/os_info.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/os_info.c (file contents):
Revision 1.23 by tdb, Sat Sep 24 13:29:22 2005 UTC vs.
Revision 1.24 by tdb, Mon Oct 9 14:09:38 2006 UTC

# Line 324 | Line 324 | sg_host_info *sg_get_host_info()
324          }
325          if((ksp=kstat_lookup(kc, "unix", -1, "system_misc"))==NULL){
326                  sg_set_error(SG_ERROR_KSTAT_LOOKUP, "unix,-1,system_misc");
327 +                kstat_close(kc);
328                  return NULL;
329          }
330          if (kstat_read(kc, ksp, 0) == -1) {
331                  sg_set_error(SG_ERROR_KSTAT_READ, NULL);
332 +                kstat_close(kc);
333                  return NULL;
334          }
335          if((kn=kstat_data_lookup(ksp, "boot_time")) == NULL){
336                  sg_set_error(SG_ERROR_KSTAT_DATA_LOOKUP, "boot_time");
337 +                kstat_close(kc);
338                  return NULL;
339          }
340          boottime=(kn->value.ui32);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines