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

[libvirt] [PATCH 2/6] tests: Remove VIR_FREE() on static/stack buffer (der.data)



---
 tests/virnettlscontexttest.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/virnettlscontexttest.c b/tests/virnettlscontexttest.c
index 49462df..e0a2788 100644
--- a/tests/virnettlscontexttest.c
+++ b/tests/virnettlscontexttest.c
@@ -297,7 +297,6 @@ testTLSGenerateCert(struct testTLSCertReq *req)
             abort();
         }
         asn1_delete_structure(&ext);
-        VIR_FREE(der.data);
     }
 
     /*
@@ -324,7 +323,6 @@ testTLSGenerateCert(struct testTLSCertReq *req)
             abort();
         }
         asn1_delete_structure(&ext);
-        VIR_FREE(der.data);
     }
 
     /*
@@ -355,7 +353,6 @@ testTLSGenerateCert(struct testTLSCertReq *req)
             abort();
         }
         asn1_delete_structure(&ext);
-        VIR_FREE(der.data);
     }
 
     /*
-- 
1.7.11.7


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