Skip to content

Commit

Permalink
Add free call in cache_free function
Browse files Browse the repository at this point in the history
  • Loading branch information
seanchen1991 committed Oct 24, 2018
1 parent 9a5f01f commit 33bda2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
src/server
src/data.txt
*.o
cache_tests/cache_tests
cache_tests/cache_tests.exe
cache_tests/cache_tests.log
src/cache_tests/cache_tests
src/cache_tests/cache_tests.exe
src/cache_tests/cache_tests.log
target/
data.txt
2 changes: 2 additions & 0 deletions src/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ void cache_free(struct cache *cache)

cur_entry = next_entry;
}

free(cache);
}

/**
Expand Down

0 comments on commit 33bda2b

Please sign in to comment.