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

Comparing projects/libstatgrab/src/libstatgrab/process_stats.c (file contents):
Revision 1.20 by tdb, Sat Feb 14 16:12:46 2004 UTC vs.
Revision 1.21 by ats, Sat Feb 14 16:43:55 2004 UTC

# Line 157 | Line 157 | process_stat_t *get_process_stats(){
157          }
158          
159          if (sysctl(mib, 3, kp_stats, &size, NULL, 0) < 0) {
160 +                free(kp_stats);
161                  return NULL;
162          }
163  
# Line 193 | Line 194 | process_stat_t *get_process_stats(){
194                          break;
195                  }
196          }
196 #endif
197  
198 < free(kp_stats);
198 >        free(kp_stats);
199 > #endif
200  
201   #ifdef CYGWIN
202          return NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines