free hmac_signature string after use
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 29 Aug 2007 05:43:05 +0000 (05:43 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 29 Aug 2007 05:43:05 +0000 (05:43 -0000)
src/libstrongswan/fips/fips_signer.c

index 1ce0218..36e2ffb 100644 (file)
@@ -43,7 +43,7 @@ int main(int argc, char* argv[])
        {
                exit(1);
        }
-       fprintf(f, "/* HMAC signature computed over TEXT and RODATA of libstrongswan\n");
+       fprintf(f, "/* SHA-1 HMAC signature computed over TEXT and RODATA of libstrongswan\n");
        fprintf(f, " *\n");
        fprintf(f, " * This file has been automatically generated by fips_signer\n");
        fprintf(f, " * Do not edit manually!\n");
@@ -57,5 +57,6 @@ int main(int argc, char* argv[])
        fprintf(f, "\n");
        fprintf(f, "#endif /* FIPS_SIGNATURE_H_ */\n");
        fclose(f);
+       free(hmac_signature);
        exit(0);
 }