mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
d31c50870d
Thu Jun 30 20:26:57 UTC 2016 Slackware 14.2 x86_64 stable is released! The long development cycle (the Linux community has lately been living in "interesting times", as they say) is finally behind us, and we're proud to announce the release of Slackware 14.2. The new release brings many updates and modern tools, has switched from udev to eudev (no systemd), and adds well over a hundred new packages to the system. Thanks to the team, the upstream developers, the dedicated Slackware community, and everyone else who pitched in to help make this release a reality. The ISOs are off to be replicated, a 6 CD-ROM 32-bit set and a dual-sided 32-bit/64-bit x86/x86_64 DVD. Please consider supporting the Slackware project by picking up a copy from store.slackware.com. We're taking pre-orders now, and offer a discount if you sign up for a subscription. Have fun! :-)
65 lines
2.2 KiB
Diff
65 lines
2.2 KiB
Diff
From 314f9d8f4fc50323e9f670ef54f0263cec08abc3 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=C3=96mer=20Fad=C4=B1l=20USTA?= <omerusta@gmail.com>
|
|
Date: Tue, 9 Apr 2013 04:01:23 +0300
|
|
Subject: [PATCH 2/5] Reduce noise in analysis tools complain about resource
|
|
leak
|
|
|
|
Cppcheck gives false alerts. This will stop it complaining about
|
|
resource leakage.
|
|
Thanks to mpyne for review of patch
|
|
|
|
REVIEW: 109920
|
|
---
|
|
lib/fileinputstream.cpp | 4 ++--
|
|
lib/skippingfileinputstream.cpp | 4 ++--
|
|
lib/skippingfileinputstream2.cpp | 4 ++--
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/lib/fileinputstream.cpp b/lib/fileinputstream.cpp
|
|
index 2801d1b..820b831 100644
|
|
--- a/lib/fileinputstream.cpp
|
|
+++ b/lib/fileinputstream.cpp
|
|
@@ -39,8 +39,8 @@ FileInputStream::FileInputStream(const char* filepath, int32_t buffersize) {
|
|
m_status = Error;
|
|
return;
|
|
}
|
|
- FILE* f = fopen(filepath, "rb");
|
|
- open(f, filepath, buffersize);
|
|
+ file = fopen(filepath, "rb");
|
|
+ open(file, filepath, buffersize);
|
|
}
|
|
FileInputStream::FileInputStream(FILE* file, const char* filepath,
|
|
int32_t buffersize) {
|
|
diff --git a/lib/skippingfileinputstream.cpp b/lib/skippingfileinputstream.cpp
|
|
index dcb4d32..9759c54 100644
|
|
--- a/lib/skippingfileinputstream.cpp
|
|
+++ b/lib/skippingfileinputstream.cpp
|
|
@@ -38,8 +38,8 @@ SkippingFileInputStream::SkippingFileInputStream(const char* filepath) {
|
|
m_status = Error;
|
|
return;
|
|
}
|
|
- FILE* f = fopen(filepath, "rb");
|
|
- open(f, filepath);
|
|
+ file = fopen(filepath, "rb");
|
|
+ open(file, filepath);
|
|
}
|
|
void
|
|
SkippingFileInputStream::open(FILE* f, const char* path) {
|
|
diff --git a/lib/skippingfileinputstream2.cpp b/lib/skippingfileinputstream2.cpp
|
|
index dc618f4..dcfcef2 100644
|
|
--- a/lib/skippingfileinputstream2.cpp
|
|
+++ b/lib/skippingfileinputstream2.cpp
|
|
@@ -36,8 +36,8 @@ SkippingFileInputStream2::SkippingFileInputStream2(const char* filepath, int32_t
|
|
m_status = Error;
|
|
return;
|
|
}
|
|
- FILE* f = fopen(filepath, "rb");
|
|
- open(f, filepath, buffersize);
|
|
+ file = fopen(filepath, "rb");
|
|
+ open(file, filepath, buffersize);
|
|
}
|
|
SkippingFileInputStream2::SkippingFileInputStream2(FILE* file, const char* filepath,
|
|
int32_t buffersize) {
|
|
--
|
|
1.8.4.2
|
|
|