[evolution] ECert: Correct free function of two private members



commit 663c648b6df7555ce93baf810a37f035e9c575b7
Author: Milan Crha <mcrha redhat com>
Date:   Mon Aug 15 12:51:21 2022 +0200

    ECert: Correct free function of two private members
    
    The values are a glib-allocated text, thus use g_free() to free them.

 src/smime/lib/e-cert.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/smime/lib/e-cert.c b/src/smime/lib/e-cert.c
index 88ffbffa83..55a34eb71e 100644
--- a/src/smime/lib/e-cert.c
+++ b/src/smime/lib/e-cert.c
@@ -136,10 +136,9 @@ e_cert_finalize (GObject *object)
        if (priv->issuer_cn)
                PORT_Free (priv->issuer_cn);
 
-       if (priv->issued_on_string)
-               PORT_Free (priv->issued_on_string);
-       if (priv->expires_on_string)
-               PORT_Free (priv->expires_on_string);
+       g_free (priv->issued_on_string);
+       g_free (priv->expires_on_string);
+
        if (priv->serial_number)
                PORT_Free (priv->serial_number);
 


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