[RTEMS Project] #4261: getgrent.c: Unchecked return value error spotted by Coverity

RTEMS trac trac at rtems.org
Fri Feb 19 21:24:15 UTC 2021


#4261: getgrent.c: Unchecked return value error spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  lib        |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 CID 1459004: Unchecked return value in endgrent().
 {{{
 102  if (ctx->fp != NULL) {
 103    fclose(ctx->fp);
 104  }
 105
 106  free(ctx);
    CID 1459004 (#1 of 1): Unchecked return value (CHECKED_RETURN)3.
 check_return: Calling pthread_setspecific without checking return value
 (as is done elsewhere 5 out of 6 times).
 107  pthread_setspecific(grp_key, NULL);
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4261>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list