I'm getting locator leaks from inside the SMURF SCUBA-2 simulator. I've
boiled it down to the attached program.
you'll need the data file from here:
http://www.jach.hawaii.edu/~timj/candycanes_bck.sdf
If I run the program I get:
% ./xxx
Before:
After:
HDS_SCRATCH.TEMP_1, group=
If I remove the AXIS component from the test file I don't get any locator
leaks. Naively this looks like a bug in NDF or ARY but I'm a bit confused
as to why we don't see it all the time when I use KAPPA to read these
images.
Maybe I've missed some tidy up code? (ndfBegin/End/Init don't help).
--
Tim Jenness
JAC software
http://www.jach.hawaii.edu/~timj
#include <stdio.h>
#include <stdlib.h>
#include "ndf.h"
#include "sae_par.h"
#include "ast.h"
#include "star/hds.h"
void MAIN_ () { }
int
main () {
int xndf = NDF__NOID;
AstFrameSet * wcs = NULL;
int status = SAI__OK;
printf ("Before:\n");
hdsShow("LOCATORS",&status);
ndfInit(0,NULL,&status);
ndfBegin();
ndfFind( NULL, "candycanes_bck", &xndf, &status);
ndfGtwcs( xndf, &wcs, &status );
ndfAnnul( &xndf, &status );
ndfEnd(&status);
printf ("After:\n");
hdsShow("LOCATORS",&status);
}
|