Skip to content

Commit e04d37b

Browse files
committed
Remove dead code
s is always NULL, so the check is always false.
1 parent 0c0b41d commit e04d37b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/openssl/openssl.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ PHP_FUNCTION(openssl_spki_verify)
16721672
PHP_FUNCTION(openssl_spki_export)
16731673
{
16741674
size_t spkstr_len;
1675-
char *spkstr, * spkstr_cleaned = NULL, * s = NULL;
1675+
char *spkstr, * spkstr_cleaned = NULL;
16761676
int spkstr_cleaned_len;
16771677

16781678
EVP_PKEY *pkey = NULL;
@@ -1727,9 +1727,6 @@ PHP_FUNCTION(openssl_spki_export)
17271727
if (spkstr_cleaned != NULL) {
17281728
efree(spkstr_cleaned);
17291729
}
1730-
if (s != NULL) {
1731-
efree(s);
1732-
}
17331730
}
17341731
/* }}} */
17351732

0 commit comments

Comments
 (0)