(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user