rpc: Fix double free

The value rsp.xdata.xdata_val was being freed twice. It was assigned
to dict->extra_stdfree, dict_destroy would free it and also there was
an explicit free. Getting rid of explicit free in this patch.

Change-Id: Ia9c73454bec3970b33f154fa754398bf3b045645
fixes: bz#1668268
Signed-off-by: Poornima G <pgurusid@redhat.com>
This commit is contained in:
Poornima G 2019-01-22 16:07:52 +05:30 committed by Shyamsundar Ranganathan
parent b6c417785e
commit 832f60d41d

View File

@ -2122,8 +2122,6 @@ out:
GF_FREE(frame->local);
frame->local = NULL;
STACK_DESTROY(frame->root);
if (rsp.xdata.xdata_val)
free(rsp.xdata.xdata_val);
free(rsp.spec);
if (dict)