]> granicus.if.org Git - curl/commitdiff
http2: switch to use Curl_hash_destroy()
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2015 09:41:16 +0000 (11:41 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 May 2015 09:41:16 +0000 (11:41 +0200)
as after 4883f7019d3, the *_clean() function only flushes the hash.

lib/http2.c

index d50f1731e309b8fbbc6789cdfea4ca1734de5355..961750c7e3bccf9398b1eb88e949f2c316a320aa 100644 (file)
@@ -86,7 +86,7 @@ static CURLcode http2_disconnect(struct connectdata *conn,
 
   nghttp2_session_del(c->h2);
   Curl_safefree(c->inbuf);
-  Curl_hash_clean(&c->streamsh);
+  Curl_hash_destroy(&c->streamsh);
 
   DEBUGF(infof(conn->data, "HTTP/2 DISCONNECT done\n"));