Allocate data returned by pkcs7_t.get_attribute()
[strongswan.git] / src / pki / commands / pkcs7.c
index d5bee75..3d53ace 100644 (file)
@@ -114,6 +114,7 @@ static int verify(chunk_t chunk)
                                {
                                        fprintf(stderr, " at %T", &t, FALSE);
                                }
+                               free(data.ptr);
                        }
                        fprintf(stderr, "\n");
                }