diff --git a/obexd/client/pbap.c b/obexd/client/pbap.c
index 7970c8e..76db61e 100644
--- a/obexd/client/pbap.c
+++ b/obexd/client/pbap.c
{
struct pending_request *request;
struct obc_transfer *transfer;
- guint8 *p, *apparam = NULL;
+ guint8 *p, apparam[272];
gint apparam_size;
GError *err = NULL;
DBusMessage *reply;
(APPARAM_HDR_SIZE + SEARCHATTRIB_LEN) +
(APPARAM_HDR_SIZE + MAXLISTCOUNT_LEN) +
(APPARAM_HDR_SIZE + LISTSTARTOFFSET_LEN);
- apparam = g_malloc0(apparam_size);
p = apparam;
request = pending_request_new(pbap, message);
obc_transfer_set_params(transfer, apparam, apparam_size);
- g_free(apparam);
if (obc_session_queue(pbap->session, transfer,
pull_vcard_listing_callback, request, &err))