[gupnp] Service: Do not leak address in subscription check



commit 1e1aa8d9478c60a6ef1c57febccdcb01d2f99b2b
Author: Jens Georg <mail jensge org>
Date:   Tue Jul 27 23:16:27 2021 +0200

    Service: Do not leak address in subscription check

 libgupnp/gupnp-service.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/libgupnp/gupnp-service.c b/libgupnp/gupnp-service.c
index 2a33ea5..67b3d43 100644
--- a/libgupnp/gupnp-service.c
+++ b/libgupnp/gupnp-service.c
@@ -1212,6 +1212,7 @@ add_subscription_callback (GUPnPContext *context,
             } else {
                     g_warning ("%s is not in our network; ignoring", callback);
             }
+            g_object_unref (address);
 
             return list;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]