]> git.tdb.fi Git - ext/subsurface.git/blobdiff - profile.c
Fix 'struct plot_info' memory leak
[ext/subsurface.git] / profile.c
index 531839368bf4cd53b89c386ef84a5c15c5b02078..f2cc526dd7ff4f15e33d2f85be1d080d6452cd8d 100644 (file)
--- 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);
 }