From 467650183393f05c16410c9d7d9b31f937490ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sun, 2 Apr 2006 00:59:19 +0000 Subject: [PATCH] (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 --- lib/krb5/config_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/config_file.c b/lib/krb5/config_file.c index 736fd5a2c..45266dcdd 100644 --- a/lib/krb5/config_file.c +++ b/lib/krb5/config_file.c @@ -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;