mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
4070bcf946
So, it turns out that just freeing the nc4_info is not enough; The root group must also be reclaimed. So, it appears the best approach is to invoke an abort on the failed file.
19 lines
438 B
Plaintext
19 lines
438 B
Plaintext
# Test c output
|
|
T=leak
|
|
VG=valgrind --leak-check=full
|
|
|
|
CFLAGS=-g -O0 -I. -I./include
|
|
|
|
CFLAGS=-g -O0 -I../include -I/share/ed/local/spock/include
|
|
LDFLAGS=./liblib/.libs/libnetcdf.a -L/share/ed/local/spock/lib -lhdf5_hl -lhdf5 -lz -lcurl -lm -llber -lldap -lrt -lssl -lcrypto -ldl
|
|
LFLAG=-L/usr/local/lib
|
|
RPATH=-Wl,-rpath,${LFLAG}
|
|
|
|
all::
|
|
gcc ${CFLAGS} -o t ${T}.c ${LDFLAGS}
|
|
${VG} ./t
|
|
|
|
|
|
build::
|
|
export CFLAGS; export LDFLAGS; ${MAKE} all
|