<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite"><div lang="FR" link="blue" vlink="purple" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div class="WordSection1" style="page: WordSection1;"><div style="margin: 0cm 0cm 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">The problem report by valgrind occurs processing TEARDOWN because :<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -18pt;"><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);"><span>-<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';"> <span class="Apple-converted-space"> </span></span></span></span><span dir="LTR"></span><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">RTSPServer:1016 clientSession->handleCmd_withinSession(this, cmdName, urlPreSuffix, urlSuffix, (char const*)fRequestBuffer);<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 18pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: 17.4pt;"><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">=> delete the<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 10pt; font-family: 'Courier New';">RTSPClientSession the is pointed by<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">clientSession.<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 36pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -18pt;"><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);"><span>-<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';"> <span class="Apple-converted-space"> </span></span></span></span><span dir="LTR"></span><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">RTSPServer:1098 if (clientSession != NULL && clientSession->fStreamAfterSETUP && strcmp(cmdName, "SETUP") == 0) {<o:p></o:p></span></div><div style="margin: 0cm 0cm 0.0001pt 53.4pt; font-size: 12pt; font-family: 'Times New Roman', serif; text-indent: -18pt;"><span lang="EN-US" style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);"><span>ð<span style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-family: 'Times New Roman';"> <span class="Apple-converted-space"> </span></span></span></span><span dir="LTR"></span><span lang="EN-US" style="font-size: 11pt; font-family: Arial, sans-serif; color: rgb(31, 73, 125);">The deleted clientSession is not NULL, point on a unallocated memory and clientSession->fStreamAfterSETUP is evaluated.</span></div></div></div></blockquote><div><br></div>Yes, you're right; I misinterpreted the valgrind report.</div><div><br></div><div>Changing line 1098 to</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>if (strcmp(cmdName, "SETUP") == 0 && clientSession != NULL && clientSession->fStreamAfterSETUP) {</div><div>or just</div><div><div><span class="Apple-tab-span" style="white-space: pre;"> </span>if (strcmp(cmdName, "SETUP") == 0 && clientSession->fStreamAfterSETUP) {</div><div>will avoid the problem.</div><div><br></div><div>The next release of the software will include this fix (actually, a better fix that eliminates the call to "strcmp()").</div></div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>