From 997dac244e3a3029c5d3a19a3914e2367a716522 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 23 Mar 2005 18:45:26 +0000 Subject: [PATCH] Make sure we free the right things This commit was SVN r5000. --- src/class/ompi_circular_buffer_fifo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/ompi_circular_buffer_fifo.h b/src/class/ompi_circular_buffer_fifo.h index 5c6a00665c..fc81f6f81f 100644 --- a/src/class/ompi_circular_buffer_fifo.h +++ b/src/class/ompi_circular_buffer_fifo.h @@ -546,7 +546,7 @@ static inline int ompi_cb_fifo_free_same_base_addr( ompi_cb_fifo_t *fifo, } /* free fifo array */ - if( OMPI_CB_NULL != ptr ){ + if( OMPI_CB_NULL != fifo->head ){ ptr=(char *)(fifo->queue); memory_allocator->mpool_free(ptr); fifo->queue=OMPI_CB_NULL;