Removing some memory leak problems when handling exceptions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/branches/gsoc2008-maciekd@10713 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Maciej Drwal 2008-07-26 14:18:37 +00:00
commit 7e23a5a55e
10 changed files with 336 additions and 39 deletions

View file

@ -5,6 +5,7 @@ TARGET = example
INTERFACE = example.i
RUNME = runme.c
PROXY = example_proxy.c
MEMTOOL = valgrind --leak-check=full
all::
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
@ -15,7 +16,14 @@ run:
TARGET='$(TARGET)' c_compile
env LD_LIBRARY_PATH=. ./runme
memchk:
$(MAKE) -f $(TOP)/Makefile SRCS='$(SRCS)' SWIG='$(SWIG)' \
TARGET='$(TARGET)' INTERFACE='$(INTERFACE)' CFLAGS='-g' c
$(MAKE) -f $(TOP)/Makefile RUNME='$(RUNME)' PROXY='$(PROXY)' \
TARGET='$(TARGET)' CFLAGS='-g' c_compile
env LD_LIBRARY_PATH=. $(MEMTOOL) ./runme
clean:
rm -f *.o *.so *.out *.a *.exe *.dll *_wrap* *_proxy* *~
rm -f *.o *.so *.out *.a *.exe *.dll *_wrap* *_proxy* *~ runme
check: all