Changeset 9511a0ab in rtems
- Timestamp:
- Jun 21, 2010, 4:27:23 PM (9 years ago)
- Branches:
- 4.9
- Children:
- ca07e7d
- Parents:
- 219298ad
- Location:
- cpukit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r219298ad r9511a0ab 1 2010-06-21 Joel Sherrill <joel.sherrilL@OARcorp.com> 2 3 PR 1554/cpukit 4 Coverity Id 17 5 * libi2c/libi2c.c: Fix memory leak on error. 6 1 7 2010-03-17 Chris Johns <chrisj@rtems.org> 2 8 -
cpukit/libi2c/libi2c.c
r219298ad r9511a0ab 396 396 if ('/' != *nmcpy) { 397 397 safe_printf ( DRVNM "Bad name: must be an absolute path starting with '/'\n"); 398 free( nmcpy ); 398 399 return -RTEMS_INVALID_NAME; 399 400 } … … 401 402 if (!stat (nmcpy, &sbuf)) { 402 403 safe_printf ( DRVNM "Bad name: file exists already\n"); 404 free( nmcpy ); 403 405 return -RTEMS_INVALID_NAME; 404 406 } … … 413 415 safe_printf ( DRVNM "Get %s status failed: %s\n", 414 416 nmcpy, strerror(errno)); 417 free( nmcpy ); 415 418 return -RTEMS_INVALID_NAME; 416 419 } … … 420 423 if (!libmutex) { 421 424 safe_printf ( DRVNM "Library not initialized\n"); 425 free( nmcpy ); 422 426 return -RTEMS_NOT_DEFINED; 423 427 } … … 425 429 if (bus == NULL || bus->size < sizeof (*bus)) { 426 430 safe_printf ( DRVNM "No bus-ops or size too small -- misconfiguration?\n"); 431 free( nmcpy ); 427 432 return -RTEMS_NOT_CONFIGURED; 428 433 }
Note: See TracChangeset
for help on using the changeset viewer.