Explicitly free the previously allocated copy if ServiceDiscoveryRequest
or Service DiscvoveryResponse parsing loop finds multiple instances of
the same dict entry.
Signed-off-by: Jouni Malinen <j@w1.fi>
if (entry.type != DBUS_TYPE_ARRAY ||
entry.array_type != DBUS_TYPE_BYTE)
goto error_clear;
+ wpabuf_free(tlv);
tlv = wpabuf_alloc_copy(entry.bytearray_value,
entry.array_len);
} else
if (entry.type != DBUS_TYPE_ARRAY ||
entry.array_type != DBUS_TYPE_BYTE)
goto error_clear;
+ wpabuf_free(tlv);
tlv = wpabuf_alloc_copy(entry.bytearray_value,
entry.array_len);
} else