Opened 16 years ago
Last modified 14 years ago
#1354 new defect
stream/stream_radio.c:1145: Memory leak: priv
Reported by: | Owned by: | reimar | |
---|---|---|---|
Priority: | normal | Component: | streaming |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
In file stream/stream_radio.c:1145:
Variable priv seems to be leaking memory in many locations, e.g. on line 1145 where STREAM_ERROR is returned.
priv=calloc(1,sizeof(radio_priv_t));
if(priv->driver)
mp_msg(MSGT_RADIO, MSGL_INFO, priv->driver->info);
else{
mp_msg(MSGT_RADIO, MSGL_INFO, MSGTR_RADIO_DriverUnknownStr,priv->radio_param->driver);
close_s(stream);
return STREAM_ERROR;
}
This bug was found using cppcheck: http://cppcheck.wiki.sourceforge.net/
Note:
See TracTickets
for help on using tickets.