From: Samuel Ortiz Date: Thu, 28 Jun 2012 16:21:06 +0000 (+0200) Subject: handover: Free allocated handover record if parsing fails X-Git-Tag: 0.5~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1739c31875a66ad5466a542b00741657179c0e5c;p=platform%2Fupstream%2Fneard.git handover: Free allocated handover record if parsing fails --- diff --git a/plugins/handover.c b/plugins/handover.c index 1cd68f8..9b919e4 100644 --- a/plugins/handover.c +++ b/plugins/handover.c @@ -157,6 +157,8 @@ static int handover_ndef_parse(int client_fd, struct hr_ndef *ndef) fail: near_error("ndef parsing failed (%d)", err); + handover_close(client_fd, 0); + return err; }