Skip to content

Commit

Permalink
Use efree() on emalloc()'d buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoirotte committed Dec 31, 2017
1 parent cf6831c commit 565e8cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tomcrypt_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ PHP_FUNCTION(tomcrypt_hkdf)
output[output_len] = '\0';

if ((err = hkdf(index, salt, salt_len, info, info_len, input, input_len, output, output_len)) != CRYPT_OK) {
free(output);
efree(output);
TOMCRYPT_G(last_error) = err;
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", error_to_string(err));
RETURN_FALSE;
Expand Down

0 comments on commit 565e8cf

Please sign in to comment.