diff mbox

libdat v2.0: memory leak in static registration during parsing

Message ID E3280858FA94444CA49D2BA02341C983011E66B8E8@orsmsx506.amr.corp.intel.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arlin Davis Dec. 7, 2010, 12:22 a.m. UTC
None
diff mbox

Patch

diff --git a/dat/udat/udat_sr_parser.c b/dat/udat/udat_sr_parser.c
index 3b5caef..1d5f0d8 100644
--- a/dat/udat/udat_sr_parser.c
+++ b/dat/udat/udat_sr_parser.c
@@ -492,6 +492,12 @@  DAT_RETURN dat_sr_parse_entry(DAT_OS_FILE * file)
 					    1));
 	}
 
+	if (NULL != entry.platform_params) {
+		dat_os_free(entry.platform_params,
+			    sizeof(char) *
+			    (dat_os_strlen(entry.platform_params) +  1));
+	}
+
 	return status;
 }