• Margit Schubert-While's avatar
    [PATCH] prism54 Fix memory leaks · d716e082
    Margit Schubert-While authored
    * Change the "version" OID to what it should be.
    * Fix memory leaks - mgt_get_request always returns
    * allocated memory for non-int OIDS (with an exception -
    * keep reading). If the caller checks the return and itself
    * returns, then it must free memory.
    * However, it is possible to return from mgt_get_request
    * early (!priv->mib). In this case, weird things can happen
    * in isl_ioctl. Quick fix, at least to force an oops, is
    * to set the union value to NULL. The real fix is to
    * recode all mgt_get_request calls in isl_ioctl.
    d716e082
isl_ioctl.c 60.3 KB