Changeset 252 for trunk/src/sh_portcheck.c
- Timestamp:
- Oct 12, 2009, 10:40:45 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_portcheck.c
r237 r252 312 312 SH_FREE(splits); 313 313 sh_string_destroy(&s); 314 fclose(fp);314 sl_fclose(FIL__, __LINE__, fp); 315 315 return buf; 316 316 } … … 320 320 } 321 321 sh_string_destroy(&s); 322 fclose(fp);322 sl_fclose(FIL__, __LINE__, fp); 323 323 } 324 324 return NULL; … … 360 360 SH_FREE(splits); 361 361 sh_string_destroy(&s); 362 fclose(fp);362 sl_fclose(FIL__, __LINE__, fp); 363 363 return buf; 364 364 } … … 369 369 } 370 370 sh_string_destroy(&s); 371 fclose(fp);371 sl_fclose(FIL__, __LINE__, fp); 372 372 } 373 373 return NULL; … … 874 874 } 875 875 } 876 close (fd);876 sl_close_fd (FIL__, __LINE__, fd); 877 877 return 0; 878 878 } … … 988 988 port); 989 989 } 990 close (fd);990 sl_close_fd (FIL__, __LINE__, fd); 991 991 return 0; 992 992 } … … 1226 1226 for (port = min_port; port <= max_port; ++port) 1227 1227 { 1228 1229 1228 if ((sock = socket(AF_INET, type, protocol)) < 0 ) 1230 1229 { … … 1265 1264 /* we can bind the port, thus it is unused 1266 1265 */ 1267 close (sock);1266 sl_close_fd (FIL__, __LINE__, sock); 1268 1267 } 1269 1268 else … … 1290 1289 #endif 1291 1290 } 1292 close (sock);1291 sl_close_fd (FIL__, __LINE__, sock); 1293 1292 } 1294 1293 }
Note:
See TracChangeset
for help on using the changeset viewer.