Skip to content

Commit

Permalink
Free memory from allocating the algn struct (#482)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jwcodee authored Sep 11, 2024
1 parent 116a6bf commit 8c9545b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions Align/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ abyss_mergepairs_LDADD = $(builddir)/libalign.a \
$(top_builddir)/Common/libcommon.a

abyss_mergepairs_SOURCES = mergepairs.cc

7 changes: 2 additions & 5 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
displayName: Install btllib
- script: |
./autogen.sh
export CXXFLAGS="$CXXFLAGS -fuse-ld=lld"
echo $CXXFLAGS
export CFLAGS="$CFLAGS -fuse-ld=lld"
export OBJCFLAGS="$OBJCFLAGS -fuse-ld=lld"
export OBJCXXFLAGS="$OBJCXXFLAGS -fuse-ld=lld"
export CC=gcc-14
export CXX=g++-14
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"
./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
make -j12 distcheck AM_CXXFLAGS=-Wno-error=dangling-reference
Expand Down
2 changes: 2 additions & 0 deletions dialign/museq.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,8 @@ int main(int argc, char **argv)
duration = (clock()-tim)/CLOCKS_PER_SEC;
printf("Total time: %f secs\n", duration);
printf("Total weight: %f \n", algn->total_weight);
free_alignment(algn);
free_alignment(salgn);
exit(EXIT_SUCCESS);
}

Expand Down

0 comments on commit 8c9545b

Please sign in to comment.