From 2cfff3c05bbd5e546466aa7a51c803bf3411f567 Mon Sep 17 00:00:00 2001 From: dnewman-gpsw Date: Thu, 20 Aug 2020 09:31:22 -0700 Subject: [PATCH] fixed a potential memory leak --- GPMF_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPMF_parser.c b/GPMF_parser.c index 42fd33d..f909a6a 100644 --- a/GPMF_parser.c +++ b/GPMF_parser.c @@ -1448,7 +1448,7 @@ GPMF_ERR GPMF_ScaledData(GPMF_stream *ms, void *buffer, uint32_t buffersize, uin if (remaining_sample_size < sample_size * read_samples) { - return GPMF_ERROR_MEMORY; + ret = GPMF_ERROR_MEMORY; goto cleanup; } }