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
e882ff8c
Kaydet (Commit)
e882ff8c
authored
Kas 24, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
coverity#736477 document deliberate Resource leak at detection point
Change-Id: Id9ad1df799c67110a426ee7ce41287703e8bdbfb
üst
d395093a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
concat-deps.c
solenv/bin/concat-deps.c
+6
-5
No files found.
solenv/bin/concat-deps.c
Dosyayı görüntüle @
e882ff8c
...
...
@@ -909,11 +909,6 @@ char last_ns = 0;
off_t
size
;
buffer
=
file_load
(
fn
,
&
size
,
&
rc
);
/* Note: yes we are going to leak 'buffer'
* this is on purpose, to avoid cloning the 'key' out of it
* and our special 'hash' just store the pointer to the key
* inside of buffer, hence it need to remain allocated
*/
if
(
!
rc
)
{
base
=
cursor_out
=
cursor
=
end
=
buffer
;
...
...
@@ -1081,6 +1076,12 @@ off_t size;
}
}
}
/* Note: yes we are going to leak 'buffer'
* this is on purpose, to avoid cloning the 'key' out of it and our special
* 'hash' just store the pointer to the key inside of buffer, hence it need
* to remain allocated
* coverity[leaked_storage] - this is on purpose
*/
return
rc
;
}
...
...
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