In a simple pendulum, we know that the angular frequency of small oscillations is $\omega = \sqrt{\frac{g}{l}}$. However $\sqrt{\frac{U''(x_0)}{m}}$ gives $\sqrt{gl}$ as the angular frequency.
Let $l$ be the length of the string, let $\theta$ be the angle made by the string with the vertical, and let $m$ be the mass of the bob.
We have $U(\theta) = -mgl\cos\theta$ and $U''(\theta) = mgl\cos\theta$.
$U$ has a minimum at $\theta = 0$.
So the angular frequency of small oscillations is $\sqrt{\frac{U''(0)}{m}} = \sqrt{\frac{mgl}{m}} = \sqrt{gl}$.
What mistake have I made here?