1
0
mirror of https://github.com/moparisthebest/spdylay synced 2024-11-15 22:15:14 -05:00

Fixed memory leak

This commit is contained in:
Tatsuhiro Tsujikawa 2012-01-20 00:00:37 +09:00
parent 1000998228
commit 09e57a1978

View File

@ -40,8 +40,9 @@ static void spdylay_map_entry_free(spdylay_map_entry *entry)
static void spdylay_map_entry_free_recur(spdylay_map_entry *entry) static void spdylay_map_entry_free_recur(spdylay_map_entry *entry)
{ {
if(entry != NULL) { if(entry != NULL) {
spdylay_map_entry_free(entry->left); spdylay_map_entry_free_recur(entry->left);
spdylay_map_entry_free(entry->right); spdylay_map_entry_free_recur(entry->right);
free(entry);
} }
} }