Explorar el Código

Fix another memory leak when allocating memory for the dialplan.

AdrianSimionov hace 9 años
padre
commit
ae96e033fc
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/docsis.c

+ 1 - 0
src/docsis.c

@@ -237,6 +237,7 @@ add_dialplan (unsigned char *tlvbuf, unsigned int tlvbuflen) {
 
   memcpy(tlvbuf + tlvbuflen, dialplan_buffer, fileSize);
   tlvbuflen = tlvbuflen + fileSize;
+  free(dialplan_buffer);
 
   memcpy (tlvbuf + tlvbuflen, "\xfe\x01\xff", 3);
   tlvbuflen += 3;