Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on March 6, 2015 at 12:07 PM

Section 1 (C++)

int fun(int a)
{
        /* may raise NoEnoughMemoryException */
	vector<char> buf(SIZE);

	if (condition1) {
		while (loop1) {
			...
		}
		return 1;
	}
	...

	return 0;

        /* no need for kfree, buf gets deleted automatically
           on both return statements *and* in case exception is raised */
}