[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:44:12 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=f9d2c34
The following commit has been merged in the master branch:
commit f9d2c349a71c5407e7ad6e4d7429b83854309744
Author: Robin Mills <robin at clanmills.com>
Date: Sun Jul 13 08:39:44 2014 +0000
CID:982000 Resource Leak.
---
src/version.cpp | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/version.cpp b/src/version.cpp
index 59a7957..e820108 100644
--- a/src/version.cpp
+++ b/src/version.cpp
@@ -237,9 +237,10 @@ EXIV2API void dumpLibraryInfo(std::ostream& os)
}
// http://syprog.blogspot.com/2011/12/listing-loaded-shared-objects-in-linux.html
- struct lmap* pl;
- void* ph = dlopen(NULL, RTLD_NOW);
- struct something* p = (struct something*)ph;
+ struct lmap* pl;
+ void* ph = dlopen(NULL, RTLD_NOW);
+ struct something* p = (struct something*) ph;
+
p = p->ptr;
pl = (struct lmap*)p->ptr;
@@ -266,4 +267,10 @@ EXIV2API void dumpLibraryInfo(std::ostream& os)
for ( string_i lib = libs.begin()+1 ; lib != libs.end() ; lib++ )
os << "library=" << *lib << endl;
}
+
+#if defined(__linux__)
+ dlclose(ph);
+ ph=NULL;
+#endif
+
}
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list