Marcus Meissner : hhctrl.ocx: Free the correct buffer (Coverity).

Alexandre Julliard julliard at winehq.org
Mon Mar 10 14:38:28 CDT 2014


Module: wine
Branch: master
Commit: 0d00e16327cbc0952a06646065f4a3983641cfa9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0d00e16327cbc0952a06646065f4a3983641cfa9

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sat Mar  8 10:00:53 2014 +0100

hhctrl.ocx: Free the correct buffer (Coverity).

---

 dlls/hhctrl.ocx/stream.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/hhctrl.ocx/stream.c b/dlls/hhctrl.ocx/stream.c
index 4dc9645..6e831e5 100644
--- a/dlls/hhctrl.ocx/stream.c
+++ b/dlls/hhctrl.ocx/stream.c
@@ -145,7 +145,7 @@ BOOL next_node(stream_t *stream, strbuf_t *buf)
     strbuf_init(&tmpbuf);
     if(!find_node_end(stream, &tmpbuf))
     {
-        strbuf_free(buf);
+        strbuf_free(&tmpbuf);
         return FALSE;
     }
     strbuf_free(&tmpbuf);




More information about the wine-cvs mailing list