Bug 838724 - Port back upstream patch to fix memory leak in libical. r=philipp