cleaning up memory allocated in c_cssgrid

From: Jason Tillett <tillett_at_nyahnyahspammersnyahnyah>
Date: Tue, 25 Sep 2007 08:34:33 -0400

I have a simple code that calls c_cssgrid. It is able to perform the interpolation as long as I only make a single call to c_cssgrid. If I change the parameters of the interpolated grid (for example) and call a second time, I generate a segmentation fault. Using gdb, the backtrace yields Program received signal SIGSEGV, Segmentation fault. 0x002d5eac in _int_malloc () from /lib/tls/libc.so.6 (gdb) bt #0 0x002d5eac in _int_malloc () from /lib/tls/libc.so.6 #1 0x002d7456 in calloc () from /lib/tls/libc.so.6 #2 0x08049f57 in c_cssgrid () #3 0x080495cc in main () at RingDaemon_single.cc:259 It seems that c_cssgrid is failing to allocate memory. In the main program, after I define the return pointer for c_cssgrid, and call c_cssgrid, how do I properly release all of the memory that c_cssgrid allocated? Thank You Jason
_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Tue Sep 25 2007 - 06:34:33 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 27 2007 - 10:05:05 MDT