diff --git a/jeeps/gpsserial.cc b/jeeps/gpsserial.cc index 164054bc3..6e20b5574 100644 --- a/jeeps/gpsserial.cc +++ b/jeeps/gpsserial.cc @@ -604,6 +604,7 @@ int32_t GPS_Serial_Off(gpsdevh* dh) gps_errno = HARDWARE_ERROR; return 0; } + xfree(dh); return 1; }