Mercurial > hg > audiodb
comparison audioDB.cpp @ 185:ae212368a874 no-big-mmap
Typo fix in cleanup()
I'm not sure why the tests didn't find this typo, but maybe the munmap()
is being slightly permissive about not segfaulting horribly when given
something it has already unmapped...
author | mas01cr |
---|---|
date | Fri, 16 Nov 2007 11:44:55 +0000 |
parents | 1fb3d82aa590 |
children | 530154ca4cf5 |
comparison
equal
deleted
inserted
replaced
184:1fb3d82aa590 | 185:ae212368a874 |
---|---|
116 if(trackTable) | 116 if(trackTable) |
117 munmap(trackTable, trackTableLength); | 117 munmap(trackTable, trackTableLength); |
118 if(dataBuf) | 118 if(dataBuf) |
119 munmap(dataBuf, dataBufLength); | 119 munmap(dataBuf, dataBufLength); |
120 if(timesTable) | 120 if(timesTable) |
121 munmap(dataBuf, timesTableLength); | 121 munmap(timesTable, timesTableLength); |
122 if(l2normTable) | 122 if(l2normTable) |
123 munmap(l2normTable, l2normTableLength); | 123 munmap(l2normTable, l2normTableLength); |
124 | 124 |
125 if(dbfid>0) | 125 if(dbfid>0) |
126 close(dbfid); | 126 close(dbfid); |