Get this error on approval of images uploaded

Code:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6400 bytes) in /home/sites/teamvenom-nfsu2.com/public_html/wallpaper/includes/functions.php on line 339