hugin-devs team mailing list archive
-
hugin-devs team
-
Mailing list archive
-
Message #04990
[Bug 1295033] [NEW] [vigra_ext/NearestFeatureTransform.h:144]: (error) Resource leak: f
Public bug reported:
Source code is
FILE * f = fopen(file,"wb+");
if (f == NULL) {
std::cerr << "enblend: error creating temporary file." << std::endl;
exit(1);
}
size_t size = w*h;
size_t itemsWritten = fwrite(ptr, sizeof(dist_t), size, f);
if (itemsWritten < size) {
std::cerr << "enblend: error writing to temporary file." << std::endl;
perror("reason");
exit(1);
}
Suggest add missing call to fclose.
** Affects: hugin
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Hugin
Developers, which is subscribed to Hugin.
https://bugs.launchpad.net/bugs/1295033
Title:
[vigra_ext/NearestFeatureTransform.h:144]: (error) Resource leak: f
Status in Hugin - Panorama Tools GUI:
New
Bug description:
Source code is
FILE * f = fopen(file,"wb+");
if (f == NULL) {
std::cerr << "enblend: error creating temporary file." << std::endl;
exit(1);
}
size_t size = w*h;
size_t itemsWritten = fwrite(ptr, sizeof(dist_t), size, f);
if (itemsWritten < size) {
std::cerr << "enblend: error writing to temporary file." << std::endl;
perror("reason");
exit(1);
}
Suggest add missing call to fclose.
To manage notifications about this bug go to:
https://bugs.launchpad.net/hugin/+bug/1295033/+subscriptions
Follow ups
References