summaryrefslogtreecommitdiff
path: root/include/phat/representations/abstract_pivot_column.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/phat/representations/abstract_pivot_column.h')
-rw-r--r--include/phat/representations/abstract_pivot_column.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/phat/representations/abstract_pivot_column.h b/include/phat/representations/abstract_pivot_column.h
index f441537..fbee368 100644
--- a/include/phat/representations/abstract_pivot_column.h
+++ b/include/phat/representations/abstract_pivot_column.h
@@ -47,8 +47,10 @@ namespace phat {
void release_pivot_col() {
index idx = idx_of_pivot_cols();
- if( idx != -1 )
+ if( idx != -1 ) {
+ this->matrix[ idx ].clear();
pivot_cols().get_col_and_clear( this->matrix[ idx ] );
+ }
idx_of_pivot_cols() = -1;
}