summaryrefslogtreecommitdiffstats
path: root/parameter/SubsystemObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/SubsystemObject.cpp')
-rwxr-xr-xparameter/SubsystemObject.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/parameter/SubsystemObject.cpp b/parameter/SubsystemObject.cpp
index fd263c6..fb635c8 100755
--- a/parameter/SubsystemObject.cpp
+++ b/parameter/SubsystemObject.cpp
@@ -222,7 +222,9 @@ void CSubsystemObject::log_info(const string& strMessage, ...) const
va_end(listPointer);
- _pInstanceConfigurableElement->log_info(pacBuffer);
+ if (pacBuffer != NULL) {
+ _pInstanceConfigurableElement->log_info(pacBuffer);
+ }
free(pacBuffer);
}
@@ -238,7 +240,9 @@ void CSubsystemObject::log_warning(const string& strMessage, ...) const
va_end(listPointer);
- _pInstanceConfigurableElement->log_warning(pacBuffer);
+ if (pacBuffer != NULL) {
+ _pInstanceConfigurableElement->log_warning(pacBuffer);
+ }
free(pacBuffer);
}