aboutsummaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 22:47:12 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 22:47:12 -0700
commit6eefcf40e68c2a5cf35c35b92ed7529072e5da64 (patch)
tree07ddeb2db73b74f2a209ba22e1a0db00be36ecea /profile.c
parent3fd66cc69b89568199469b26e2ccf1afe4cc4bdb (diff)
downloadsubsurface-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 531839368..f2cc526dd 100644
--- a/profile.c
+++ b/profile.c
@@ -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);
}