diff options
Diffstat (limited to 'src/modules/database/mdatabasecache.cpp')
-rw-r--r-- | src/modules/database/mdatabasecache.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/database/mdatabasecache.cpp b/src/modules/database/mdatabasecache.cpp index 4e2b45ac7b..1705066139 100644 --- a/src/modules/database/mdatabasecache.cpp +++ b/src/modules/database/mdatabasecache.cpp @@ -159,10 +159,8 @@ void MDatabaseCache::SetCachedVariant(DBVARIANT* s /* new */, DBVARIANT* d /* ca d->pszVal = (char*)HeapAlloc(m_hCacheHeap, 0, strlen(s->pszVal) + 1);
strcpy(d->pszVal, s->pszVal);
}
- else if (szSave != NULL) {
+ else if (szSave != NULL)
HeapFree(m_hCacheHeap, 0, szSave);
- d->pszVal = NULL;
- }
}
void MDatabaseCache::FreeCachedVariant(DBVARIANT* V)
|