Fixed memory leak
This commit is contained in:
parent
1000998228
commit
09e57a1978
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue