~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/auth_pam/auth_pam.cc

  • Committer: Mark Atwood
  • Date: 2011-06-30 07:03:08 UTC
  • mto: This revision was merged to the branch mainline in revision 2358.
  • Revision ID: me@mark.atwood.name-20110630070308-4380q6dqkkqv92w2
fix cppcheck redundantIfDelete0 warnings.  It is safe to deallocate a NULL pointer

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
      response[x].resp = strdup(userinfo->password);
87
87
      break;
88
88
    default:
89
 
      if(response)
90
 
        free(response);
 
89
      free(response);
91
90
      return PAM_CONV_ERR;
92
91
    }
93
92
  }