Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ce757cdd
Kaydet (Commit)
ce757cdd
authored
Agu 19, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#1371380 Resource leak on an exceptional path
Change-Id: I278f8d50dfaaa45e582a34e43ddba3b143203796
üst
29a479c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
socketAcceptor.java
jurt/com/sun/star/lib/connections/socket/socketAcceptor.java
+7
-1
socketConnector.java
.../com/sun/star/lib/connections/socket/socketConnector.java
+5
-3
No files found.
jurt/com/sun/star/lib/connections/socket/socketAcceptor.java
Dosyayı görüntüle @
ce757cdd
...
...
@@ -144,7 +144,7 @@ public final class socketAcceptor implements XAcceptor {
}
serv
=
server
;
}
Socket
socket
;
Socket
socket
=
null
;
try
{
socket
=
serv
.
accept
();
if
(
DEBUG
)
{
...
...
@@ -165,6 +165,12 @@ public final class socketAcceptor implements XAcceptor {
return
new
SocketConnection
(
acceptingDescription
,
socket
);
}
catch
(
IOException
e
)
{
if
(
socket
!=
null
)
{
try
{
socket
.
close
();
}
catch
(
IOException
ioException
)
{
}
}
throw
new
ConnectionSetupException
(
e
);
}
}
...
...
jurt/com/sun/star/lib/connections/socket/socketConnector.java
Dosyayı görüntüle @
ce757cdd
...
...
@@ -154,9 +154,11 @@ public final class socketConnector implements XConnector {
con
=
new
SocketConnection
(
connectionDescription
,
socket
);
}
catch
(
IOException
e
)
{
try
{
socket
.
close
();
}
catch
(
IOException
ioException
)
{
if
(
socket
!=
null
)
{
try
{
socket
.
close
();
}
catch
(
IOException
ioException
)
{
}
}
throw
new
NoConnectException
(
e
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment