Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rmw_fastrtps dead code #163

Merged
merged 6 commits into from
Oct 27, 2017
Merged

Fix rmw_fastrtps dead code #163

merged 6 commits into from
Oct 27, 2017

Commits on Oct 23, 2017

  1. * Fix rmw_fastrtps dead code

    Dead code in API rmw_create_subscription()
    becasue the condition "rmw_subscription" cannot be true in the
    "fail" clauses, the execution cannot reach this statement:
    
    rmw_subscription_free(rmw_subscription);
    
    finally, the "rmw_subscribtion" is free by
    rmw_destroy_subscription() when it's not a nullptr
    
    Dead code in API rmw_create_publisher()
    because the condition "rmw_publisher" cannot be true in the
    "fail" clauses, the execution cannot reach this statement:
    
    rmw_publisher_free(rmw_publisher);
    
    finally, the "rmw_publisher" is free by
    rmw_destroy_publisher() when it's not a nullptr
    
    Signed-off-by: Ethan Gao <[email protected]>
    gaoethan committed Oct 23, 2017
    Configuration menu
    Copy the full SHA
    483a2d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2017

  1. Configuration menu
    Copy the full SHA
    63a9479 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2017

  1. Configuration menu
    Copy the full SHA
    ef8381f View commit details
    Browse the repository at this point in the history
  2. * Add memory allocation checking for topic name

    this memory allocation checking avoids the unintended
    behaviour which derives from unknown memory free issue
    at rmw_destroy_publisher
    
    Signed-off-by: Ethan Gao <[email protected]>
    gaoethan committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    155b2a1 View commit details
    Browse the repository at this point in the history
  3. tweak the log information more accurate

    Signed-off-by: Ethan Gao <[email protected]>
    gaoethan committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    c201256 View commit details
    Browse the repository at this point in the history
  4. publiser -> publisher

    Signed-off-by: Chris Lalancette <[email protected]>
    clalancette committed Oct 27, 2017
    Configuration menu
    Copy the full SHA
    db2b4e9 View commit details
    Browse the repository at this point in the history