content: Fix potential memory leak