aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sls.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sls.cpp b/src/sls.cpp
index 5031451..dcae806 100644
--- a/src/sls.cpp
+++ b/src/sls.cpp
@@ -397,6 +397,9 @@ bool SLSManager::encodeFile(const std::string& fname, int fidx, bool raw_slides)
fname.c_str(), fidx, blobsize);
}
resize_required = false;
+ } else {
+ free(blob);
+ blob = NULL;
}
}