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

Comparing projects/libstatgrab/src/libstatgrab/tools.c (file contents):
Revision 1.63 by tdb, Sat Sep 24 13:29:23 2005 UTC vs.
Revision 1.64 by tdb, Mon Oct 9 14:09:38 2006 UTC

# Line 249 | Line 249 | static int build_mapping(){
249                                  if (x>=BIG_ENOUGH){
250                                          /* We've got bigger than we thought was massive */
251                                          /* If we hit this.. Make big enough bigger */
252 +                                        kstat_close(kc);
253                                          return -1;
254                                  }
255                                  if( !strncmp(driver_list[x], device_name, BIG_ENOUGH)){
# Line 259 | Line 260 | static int build_mapping(){
260  
261                          if(!found){
262                                  if((get_alias(device_name)) != 0){
263 +                                        kstat_close(kc);
264                                          return -1;
265                                  }
266                                  strncpy(driver_list[x], device_name, BIG_ENOUGH);
# Line 266 | Line 268 | static int build_mapping(){
268                          }
269                  }
270          }
271 +
272 +        kstat_close(kc);
273  
274          return 0;
275   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines