Browse Source

Fix another memory leak when allocating memory for the dialplan.

AdrianSimionov 9 years ago
parent
commit
ae96e033fc
1 changed files with 1 additions and 0 deletions
  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;