Kaynağa Gözat

pan/midgard: Don't try to free NULL in LCRA

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Fixes: 12e393bacf ("panfrost: add lcra_free() to free lcra state")
master
Alyssa Rosenzweig 6 yıl önce
ebeveyn
işleme
4308d75281
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 3
    0
      src/panfrost/midgard/lcra.c

+ 3
- 0
src/panfrost/midgard/lcra.c Dosyayı Görüntüle

@@ -69,6 +69,9 @@ lcra_alloc_equations(
void
lcra_free(struct lcra_state *l)
{
if (!l)
return;

free(l->alignment);
free(l->linear);
free(l->modulus);

Loading…
İptal
Kaydet