Update of /cvsroot/com0com/com0com/sys
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv16398
Modified Files:
adddev.c
Log Message:
Fixed memory leak
Index: adddev.c
===================================================================
RCS file: /cvsroot/com0com/com0com/sys/adddev.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** adddev.c 1 Jun 2007 16:22:40 -0000 1.26
--- adddev.c 5 Jun 2007 12:15:08 -0000 1.27
***************
*** 20,23 ****
--- 20,26 ----
*
* $Log$
+ * Revision 1.27 2007/06/05 12:15:08 vfrolov
+ * Fixed memory leak
+ *
* Revision 1.26 2007/06/01 16:22:40 vfrolov
* Implemented plug-in and exclusive modes
***************
*** 143,146 ****
--- 146,152 ----
SysLog(pDevExt->pDevObj, STATUS_UNSUCCESSFUL, L"RemoveFdoPort HidePort FAIL");
+ if (pDevExt->symbolicLinkName.Buffer)
+ RtlFreeUnicodeString(&pDevExt->symbolicLinkName);
+
StrFree(&pDevExt->ntDeviceName);
StrFree(&pDevExt->win32DeviceName);
|