json: Fix memleak in native msging repl
authorAndre Heinecke <aheinecke@intevation.de>
Wed, 18 Jul 2018 11:15:02 +0000 (13:15 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Wed, 18 Jul 2018 11:15:02 +0000 (13:15 +0200)
commit98a75a16ccdfe51799a27894d2eb26dba04b34f2
tree097bb8cabe03538737efc94eb9c4f7615279a90d
parent6d7b4382c3e12ba1dbbd0762dfa850c76750d838
json: Fix memleak in native msging repl

* src/gpgme-json.c (native_messaging_repl): Free request and
response after each loop.

--
If we only accept once request we should not loop. If we loop
we should do it properly.
src/gpgme-json.c