aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mm-port-serial-at.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mm-port-serial-at.c b/src/mm-port-serial-at.c
index fb2174da..fef910e5 100644
--- a/src/mm-port-serial-at.c
+++ b/src/mm-port-serial-at.c
@@ -157,6 +157,7 @@ parse_response (MMPortSerial *port,
/* If we got an error, propagate it without any further response string */
if (inner_error) {
+ g_string_free (string, TRUE);
g_propagate_error (error, inner_error);
return MM_PORT_SERIAL_RESPONSE_ERROR;
}