projects
/
platform
/
upstream
/
neard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4c3faa
)
handover: Free handover records
author
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 28 Jun 2012 16:37:50 +0000
(18:37 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 28 Jun 2012 16:37:50 +0000
(18:37 +0200)
plugins/handover.c
patch
|
blob
|
history
diff --git
a/plugins/handover.c
b/plugins/handover.c
index
9b919e4
..
8f09afd
100644
(file)
--- a/
plugins/handover.c
+++ b/
plugins/handover.c
@@
-145,15
+145,19
@@
static int handover_ndef_parse(int client_fd, struct hr_ndef *ndef)
near_info("Send Hs frame");
err = send(client_fd, msg->data, msg->length, MSG_DONTWAIT);
if (err >= 0)
-
return
0;
+
err =
0;
} else {
/* We received a Hs frame */
DBG("Close handover connection");
handover_close(client_fd, 0);
-
return
0;
+
err =
0;
}
+ near_ndef_records_free(records);
+
+ return err;
+
fail:
near_error("ndef parsing failed (%d)", err);