summaryrefslogtreecommitdiffstats
path: root/parameter/Element.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/Element.cpp')
-rwxr-xr-xparameter/Element.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/parameter/Element.cpp b/parameter/Element.cpp
index e5987e1..6d1d418 100755
--- a/parameter/Element.cpp
+++ b/parameter/Element.cpp
@@ -58,7 +58,9 @@ void CElement::log_info(const string& strMessage, ...) const
va_end(listPointer);
- doLog(false, pacBuffer);
+ if (pacBuffer != NULL) {
+ doLog(false, pacBuffer);
+ }
free(pacBuffer);
}
@@ -74,7 +76,9 @@ void CElement::log_warning(const string& strMessage, ...) const
va_end(listPointer);
- doLog(true, pacBuffer);
+ if (pacBuffer != NULL) {
+ doLog(true, pacBuffer);
+ }
free(pacBuffer);
}