Commit Diff
--- lib/patch.c +++ lib/patch.c @@ -687,6 +687,8 @@ done: free(template); if (tmppath != NULL) unlink(tmppath); + if (tmp != NULL) + fclose(tmp); free(tmppath); free(oldpath); free(newpath);
--- lib/patch.c +++ lib/patch.c @@ -687,6 +687,8 @@ done: free(template); if (tmppath != NULL) unlink(tmppath); + if (tmp != NULL) + fclose(tmp); free(tmppath); free(oldpath); free(newpath);