plugin: fix double free in finish callback
authorJo-Philipp Wich <jo@mein.io>
Tue, 29 Oct 2019 11:01:36 +0000 (12:01 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 29 Oct 2019 11:01:36 +0000 (12:01 +0100)
Fixes: 37aa919 ("plugin: fix leaking invoked method name for exec plugins")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
plugin.c

index 4f84994c107f40269e8b4aba9146cc82632b0048..ecc958fd53e8256cedc74467b4a665630cf3d323 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -123,7 +123,6 @@ rpc_plugin_call_finish_cb(struct blob_buf *blob, int stat, void *priv)
        json_tokener_free(c->tok);
 
        free(c->input);
-       free(c->method);
 
        return rv;
 }