Opened 11 years ago
Closed 11 years ago
#3119 closed defect (fixed)
freeing memory missing? in file module-cccam.c
Reported by: | ac2013 | Owned by: | |
---|---|---|---|
Priority: | Please fill in | Component: | ! Please select... |
Severity: | Please fill in | Keywords: | |
Cc: | Sensitive: | no |
Description
/
572 * reader+server
573 * send a message
574 */
575 int32_t cc_cmd_send(struct s_client *cl, uint8_t *buf, int32_t len, cc_msg_type_t cmd) {
576 if (!cl->udp_fd) disconnected
577 return -1;
578
579 struct s_reader *rdr = (cl->typ == 'c') ? NULL : cl->reader;
580
581 uint8_t *netbuf;
582 if (!cs_malloc(&netbuf, len + 4))
583 return -1;
584
585 int32_t n;
586 struct cc_data *cc = cl->cc;
587
cl->kill) return -1; |
589 cs_writelock(&cc->lockcmd);
cl->kill) { |
591 cs_writeunlock(&cc->lockcmd);
I believe free(netbuf);is missing here
592 return -1;
593 }
594
You are right, fix is commited r8247.