Opened 15 years ago

Last modified 13 years ago

#1354 new defect

stream/stream_radio.c:1145: Memory leak: priv

Reported by: dvice_null@… 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/

Change History (1)

comment:1 by compn, 13 years ago

Owner: changed from r_togni@… to reimar
Note: See TracTickets for help on using tickets.