Commit d5340738 authored by jvoisin's avatar jvoisin Committed by Ian Goldberg

Fix memory leak

Fixes #18Acked-by: default avatarDavid Goulet <dgoulet@ev0ke.net>
Signed-off-by: jvoisin's avatarJulien Voisin <julien.voisin@dustri.org>
parent b0da3f58
......@@ -466,6 +466,7 @@ gcry_error_t otrl_proto_instance(const char *otrmsg,
free(bufp_head);
return gcry_error(GPG_ERR_NO_ERROR);
invval:
free(bufp_head);
err = gcry_error(GPG_ERR_INV_VALUE);
return err;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment