Opened 11 years ago

Last modified 9 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: Analyzed by developer:

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 Changed 9 years ago by compn

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