summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2018-08-08 09:46:10 +0200
committerArne Schwabe <arne@rfc2549.org>2018-08-08 09:46:10 +0200
commit5b3dc16f936f5817d890399bb3150dc1d4a694a5 (patch)
tree208a8df6d94f34134824fe6e63493ef9c1a29539
parentb9ac2b15eac3e5e5f9dc89c948ec8278e2e7c1f9 (diff)
Close inputstream from external imports (closes #921)
-rw-r--r--main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
index bb072ffa..8d0c5433 100644
--- a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
+++ b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java
@@ -732,10 +732,10 @@ public class ConfigConverter extends BaseActivity implements FileSelectCallback,
InputStream is = getContentResolver().openInputStream(data);
doImport(is);
+ is.close();
if (mResult==null)
return -3;
- } catch (FileNotFoundException |
- SecurityException se)
+ } catch (IOException| SecurityException se)
{
log(R.string.import_content_resolve_error + ":" + se.getLocalizedMessage());