Explorar el Código

Free before return.

AdrianSimionov hace 10 años
padre
commit
e6f9ab8bee
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/docsis_encode.c

+ 1 - 1
src/docsis_encode.c

@@ -534,8 +534,8 @@ int encode_oid(unsigned char *buf, void *tval, struct symbol_entry *sym_ptr )
   helper = (union t_val *) tval;
 
   output_size = encode_snmp_oid(helper->strval, buf, TLV_VSIZE);
-  return ( output_size );
   free(helper->strval);
+  return ( output_size );
 }