diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 22:47:12 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 22:47:12 -0700 |
commit | 6eefcf40e68c2a5cf35c35b92ed7529072e5da64 (patch) | |
tree | 07ddeb2db73b74f2a209ba22e1a0db00be36ecea /profile.c | |
parent | 3fd66cc69b89568199469b26e2ccf1afe4cc4bdb (diff) | |
download | subsurface-6eefcf40e68c2a5cf35c35b92ed7529072e5da64.tar.gz |
Fix 'struct plot_info' memory leak
The plot_info was never freed, so every time you'd plot something, we'd
leak memory.
I'm running valgrind to see if there's anything bad going on. So far it
all looks fairly benign.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -743,4 +743,5 @@ void plot(struct graphics_context *gc, int w, int h, struct dive *dive) cairo_close_path(gc->cr); cairo_stroke(gc->cr); + free(pi); } |