Fixed memory leak

This commit is contained in:
Tatsuhiro Tsujikawa 2012-01-20 00:00:37 +09:00
parent 1000998228
commit 09e57a1978
1 changed files with 3 additions and 2 deletions

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);
} }
} }