Title: WordPress bug? &#8211; get_permalink
Last modified: August 19, 2016

---

# WordPress bug? – get_permalink

 *  Resolved [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-bug-get_permalink/)
 * I’m debugging a plugin (Google XML sitemaps by A. Brachold) trying to spot the
   memory allocation problem on large sitemaps.
 * As a result I have detected that the problem apparently lies into a call to a
   WP function:
 * `$permalink = get_permalink($post->ID);`
 * The statement above is placed into a loop; on a 1,000 rows (posts) loop, the 
   function, “leaks” some 4MB of memory.
 * Is this a well-known behavior or should I open a bug track?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-bug-get_permalink/#post-1547185)
 * I have noticed that two plugins are hooking on get_permalink, so I’m investigating
   further on
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-bug-get_permalink/#post-1547189)
 * Definitely looks like a plugin problem! Will post further investigation

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress bug? – get_permalink’ is closed to new replies.

## Tags

 * [get_permalink](https://wordpress.org/support/topic-tag/get_permalink/)
 * [wordpess](https://wordpress.org/support/topic-tag/wordpess/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/wordpress-bug-get_permalink/#post-1547189)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
