Make WordPress Core


Ignore:
Timestamp:
07/05/2020 03:20:16 PM (6 years ago)
Author:
SergeyBiryukov
Message:

XML-RPC: Explicitly unset the reference to the parser resource after calling xml_parser_free() to avoid memory leaks in PHP 7.0.0 or higher.

Props procifer, ayeshrajans.
Fixes #49700.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rss.php

    r47902 r48322  
    9595
    9696                xml_parser_free( $this->parser );
     97                unset( $this->parser );
    9798
    9899                $this->normalize();
Note: See TracChangeset for help on using the changeset viewer.