From: Santiago Carot Nemesio <scarot@libresoft.es>
To: linux-bluetooth@vger.kernel.org
Subject: SDP comments
Date: Tue, 27 Apr 2010 15:51:07 +0200 [thread overview]
Message-ID: <1272376267.2157.29.camel@mosquito> (raw)
In-Reply-To: <1272375578.2157.22.camel@mosquito>
Hi,
It may be interesting to take in mind that some functions in sdp_lib
such as sdp_list_append or sdp_list_insert_sorted can return NULL if
there isn't enought memory. Grepping the code i saw sentences like next:
...
ap = sdp_list_append(ap, pds);
...
I think that it can result in a memory leak when the asignation return
NULL over a not empty list. What do you think?
Regards.
next prev parent reply other threads:[~2010-04-27 13:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-27 13:34 [PATCH 1/3] SDP Santiago Carot Nemesio
2010-04-27 13:37 ` [PATCH 2/3] SDP Santiago Carot Nemesio
2010-04-27 13:39 ` [PATCH 3/3] SDP Santiago Carot Nemesio
2010-04-27 13:51 ` Santiago Carot Nemesio [this message]
2010-04-27 15:07 ` SDP comments Johan Hedberg
2010-04-27 15:05 ` [PATCH 3/3] SDP Johan Hedberg
2010-04-27 15:50 ` Marcel Holtmann
2010-04-27 15:59 ` Santiago Carot Nemesio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1272376267.2157.29.camel@mosquito \
--to=scarot@libresoft.es \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).