(krb5_config_vget_strings): IBM checker thought it found a memory

leak, it didn't, but there was another error in the code, lets fix
that instead.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16935 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-02 00:59:19 +00:00
parent 657fc04cb0
commit 4676501833

View File

@@ -574,7 +574,7 @@ krb5_config_vget_strings(krb5_context context,
}
if(nstr){
char **tmp = realloc(strings, (nstr + 1) * sizeof(*strings));
if(strings == NULL)
if(tmp == NULL)
goto cleanup;
strings = tmp;
strings[nstr] = NULL;