- Timestamp:
- Nov 2, 2009, 6:53:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/grab.c
r3874 r3875 225 225 { 226 226 char path[4096]; 227 readlink(pglob2.gl_pathv[j], path, sizeof(path)); 227 ssize_t l = readlink(pglob2.gl_pathv[j], path, sizeof(path)); 228 if(l <= 0) 229 continue; 230 path[l] = '\0'; 228 231 if(strstr(path, "/dev/pt")) 229 232 { … … 366 369 screen_list->cv = NULL; 367 370 } 371 if(nb_process > 0) 372 { 373 for(i=0; i<nb_process; i++) 374 { 375 free(process_list[i].cmdline); 376 } 377 free(process_list); 378 } 368 379 return ret; 369 380 }
Note: See TracChangeset
for help on using the changeset viewer.