<div dir="ltr">please see attached patch - hope it's good now<div><br></div><div>cheers,</div><div>Marcos</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-21 3:29 GMT-03:00 Dirk Hohndel <span dir="ltr"><<a href="mailto:dirk@hohndel.org" target="_blank">dirk@hohndel.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This patch is whitespace damaged (but otherwise good). Would you please<br>
resend in a way that keeps the whitespace intact?<br>
<br>
Thanks<br>
<br>
/D<br>
<div><div class="h5"><br>
On Mon, Apr 20, 2015 at 01:15:10PM -0300, Marcos Cardinot wrote:<br>
> From 978e2f3281dbd846c61980c00732b1d1bdea932c Mon Sep 17 00:00:00 2001<br>
> From: Marcos CARDINOT <<a href="mailto:mcardinot@gmail.com">mcardinot@gmail.com</a>><br>
> Date: Mon, 20 Apr 2015 13:05:14 -0300<br>
> Subject: [PATCH] ostctools - resource leaks<br>
><br>
> some resources are not being freed.<br>
><br>
> Signed-off-by: Marcos CARDINOT <<a href="mailto:mcardinot@gmail.com">mcardinot@gmail.com</a>><br>
> ---<br>
>  ostctools.c | 3 +++<br>
>  1 file changed, 3 insertions(+)<br>
><br>
> diff --git a/ostctools.c b/ostctools.c<br>
> index 4fa0ba5..68b7da0 100644<br>
> --- a/ostctools.c<br>
> +++ b/ostctools.c<br>
> @@ -78,6 +78,9 @@ void ostctools_import(const char *file, struct dive_table<br>
> *divetable)<br>
>   // Open the archive<br>
>   if ((archive = subsurface_fopen(file, "rb")) == NULL) {<br>
>   report_error(translate("gettextFromC", "Error: couldn't open the file"));<br>
> + free(devdata);<br>
> + free(buffer);<br>
> + free(ostcdive);<br>
>   return;<br>
>   }<br>
><br>
> --<br>
<br>
</div></div>> _______________________________________________<br>
> subsurface mailing list<br>
> <a href="mailto:subsurface@subsurface-divelog.org">subsurface@subsurface-divelog.org</a><br>
> <a href="http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface" target="_blank">http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface</a><br>
<br>
</blockquote></div><br></div>