dav/crypto.c

changeset 11
5db6178d8b58
parent 10
e6d0fbe0ebd9
child 39
3e55bed345f9
--- a/dav/crypto.c	Mon Aug 12 19:50:14 2013 +0200
+++ b/dav/crypto.c	Tue Aug 13 11:19:22 2013 +0200
@@ -167,6 +167,7 @@
             memcpy(out, enc->iv, ivl);
         }
         EVP_EncryptUpdate(&enc->ctx, out + ivl, &outlen, in, in_len);
+        free(in);
     } else {
         out = malloc(16);
         EVP_EncryptFinal_ex(&enc->ctx, out, &outlen);

mercurial