Skip to content

Commit 8c9545b

Browse files
authored
Free memory from allocating the algn struct (#482)
* museq.c: free memory, add compile flags * remove wno compile flags * azure: specify gcc version for first compiler check * azure: remove -fuse-ld=lld flags
1 parent 116a6bf commit 8c9545b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

Align/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ abyss_mergepairs_LDADD = $(builddir)/libalign.a \
3434
$(top_builddir)/Common/libcommon.a
3535

3636
abyss_mergepairs_SOURCES = mergepairs.cc
37+

azure-pipelines.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,8 @@ jobs:
2121
displayName: Install btllib
2222
- script: |
2323
./autogen.sh
24-
export CXXFLAGS="$CXXFLAGS -fuse-ld=lld"
25-
echo $CXXFLAGS
26-
export CFLAGS="$CFLAGS -fuse-ld=lld"
27-
export OBJCFLAGS="$OBJCFLAGS -fuse-ld=lld"
28-
export OBJCXXFLAGS="$OBJCXXFLAGS -fuse-ld=lld"
24+
export CC=gcc-14
25+
export CXX=g++-14
2926
export DISTCHECK_CONFIGURE_FLAGS="CC=gcc-14 CXX=g++-14 --with-boost=/usr/local/opt/boost --with-sparsehash=/usr/local/opt/google-sparsehash --with-mpi=/usr/local/opt/openmpi --with-btllib=/Users/runner/work/1/s/btllib-1.5.0/install"
3027
./configure CC=gcc-14 CXX=g++-14 --with-boost=/usr/local/opt/boost --with-sparsehash=/usr/local/opt/google-sparsehash --with-mpi=/usr/local/opt/openmpi --with-btllib=/Users/runner/work/1/s/btllib-1.5.0/install
3128
make -j12 distcheck AM_CXXFLAGS=-Wno-error=dangling-reference

dialign/museq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ int main(int argc, char **argv)
310310
duration = (clock()-tim)/CLOCKS_PER_SEC;
311311
printf("Total time: %f secs\n", duration);
312312
printf("Total weight: %f \n", algn->total_weight);
313+
free_alignment(algn);
314+
free_alignment(salgn);
313315
exit(EXIT_SUCCESS);
314316
}
315317

0 commit comments

Comments
 (0)