Fixed memory leak by freeing the pbmForms array