fix memory leak

This commit is contained in:
Dennis Heimbigner 2020-02-27 14:29:28 -07:00
parent b488c272d5
commit 8a5ae84dc6

View File

@ -247,7 +247,9 @@ main(int argc, char **argv)
if (!nerrs)
printf("SUCCESS!!\n");
if(pfs->params) free(pfs->params);
if(pfs && pfs->params) free(pfs->params);
if(pfs) free(pfs);
return (nerrs > 0 ? 1 : 0);
}